mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
fire the Inferiorexit event outside of the try block
it may not have be done if exception
This commit is contained in:
parent
698a03973b
commit
32da273437
1 changed files with 3 additions and 1 deletions
|
@ -12,6 +12,7 @@ import org.eclipse.cdt.debug.mi.core.command.MIExecAbort;
|
|||
import org.eclipse.cdt.debug.mi.core.command.MIGDBShowExitCode;
|
||||
import org.eclipse.cdt.debug.mi.core.event.MIInferiorExitEvent;
|
||||
import org.eclipse.cdt.debug.mi.core.output.MIGDBShowExitCodeInfo;
|
||||
import org.eclipse.cdt.debug.mi.core.output.MIInfo;
|
||||
|
||||
/**
|
||||
*/
|
||||
|
@ -140,7 +141,7 @@ public class MIInferior extends Process {
|
|||
MIExecAbort abort = factory.createMIExecAbort();
|
||||
try {
|
||||
session.postCommand(abort);
|
||||
session.getRxThread().fireEvent(new MIInferiorExitEvent());
|
||||
MIInfo info = abort.getMIInfo();
|
||||
} catch (MIException e) {
|
||||
}
|
||||
setTerminated();
|
||||
|
@ -198,6 +199,7 @@ public class MIInferior extends Process {
|
|||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
session.getRxThread().fireEvent(new MIInferiorExitEvent());
|
||||
notifyAll();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue