1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-08 08:45:44 +02:00

Bug 334329 - Launch is not marked as 'terminated' when program exits.

This commit is contained in:
Mikhail Khodjaiants 2011-01-26 19:00:17 +00:00
parent 7759bde483
commit 8e355ea4b2

View file

@ -293,7 +293,14 @@ public class GdbLaunch extends DsfLaunch
// 283586
DebugPlugin.getDefault().fireDebugEventSet( new DebugEvent[] { new DebugEvent(fMemRetrieval, DebugEvent.TERMINATE) });
fireTerminate();
// 'fireTerminate()' removes this launch from the list of 'DebugEvent'
// listeners. The launch may not be terminated at this point: the inferior
// and gdb processes are monitored in separate threads. This will prevent
// updating of some of the Debug view actions.
// 'DebugEvent.TERMINATE' will be fired when each of the corresponding processes
// exits and handled by 'handleDebugEvents()' method.
if (isTerminated())
fireTerminate();
rm.setStatus(getStatus());
rm.done();