Skip to content

Commit 63705af

Browse files
committed
fix(monitor): fixed the issue during cleanup for the launch
1 parent 2c91af0 commit 63705af

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

bundles/com.espressif.idf.debug.gdbjtag.openocd/src/com/espressif/idf/debug/gdbjtag/openocd/dsf/LaunchConfigurationDelegate.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,19 @@ protected void handleCompleted()
698698
}
699699
// --------------------------------------------------------------------
700700
}
701+
702+
@Override
703+
/**
704+
* This method takes care of cleaning up any resources allocated by the launch, as early as
705+
* the call to getLaunch(), whenever the launch is cancelled or does not complete properly.
706+
* @since 5.0 */
707+
protected void cleanupLaunch(ILaunch launch) throws DebugException
708+
{
709+
if (launch instanceof GdbLaunch)
710+
{
711+
launch.terminate();
712+
}
713+
}
701714

702715
/**
703716
* Perform some local validations before starting the debug session.

0 commit comments

Comments
 (0)