mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-08 00:35:49 +02:00
Bug 334329 - Launch is not marked as 'terminated' when program exits.
This commit is contained in:
parent
7759bde483
commit
8e355ea4b2
1 changed files with 8 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue