1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56: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:
Alain Magloire 2002-08-21 15:27:44 +00:00
parent 698a03973b
commit 32da273437

View file

@ -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.command.MIGDBShowExitCode;
import org.eclipse.cdt.debug.mi.core.event.MIInferiorExitEvent; 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.MIGDBShowExitCodeInfo;
import org.eclipse.cdt.debug.mi.core.output.MIInfo;
/** /**
*/ */
@ -140,7 +141,7 @@ public class MIInferior extends Process {
MIExecAbort abort = factory.createMIExecAbort(); MIExecAbort abort = factory.createMIExecAbort();
try { try {
session.postCommand(abort); session.postCommand(abort);
session.getRxThread().fireEvent(new MIInferiorExitEvent()); MIInfo info = abort.getMIInfo();
} catch (MIException e) { } catch (MIException e) {
} }
setTerminated(); setTerminated();
@ -198,6 +199,7 @@ public class MIInferior extends Process {
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }
session.getRxThread().fireEvent(new MIInferiorExitEvent());
notifyAll(); notifyAll();
} }