1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 18:56:02 +02:00

Bug 342358: An inferior ran to completion should be considered suspended

This commit is contained in:
Marc Khouzam 2011-04-10 01:28:19 +00:00
parent 9c507fe607
commit c0f8b0d48c
2 changed files with 16 additions and 4 deletions

View file

@ -426,7 +426,7 @@ public class GDBRunControl_7_0_NS extends AbstractDsfService implements IMIRunCo
}
}
// If this container does not have any threads, it means it wasn't started
// yet, so we can consider it suspended
// yet or it was terminated, so we can consider it suspended
if (hasThread == false) return true;
}

View file

@ -620,14 +620,26 @@ public class MIRunControl extends AbstractDsfService implements IMIRunControl, I
}
/**
* Event handler when a thread is destroyed
* @nooverride This method is not intended to be re-implemented or extended by clients.
* @noreference This method is not intended to be referenced by clients.
*/
@DsfServiceEventHandler
public void eventDispatched(ExitedDMEvent e) {
public void eventDispatched(IExitedDMEvent e) {
if (e.getDMContext() instanceof IContainerDMContext) {
// When the process terminates, we should consider it as suspended
// In fact, we did get a stopped event, but our processing of it
// needs some cleaning up. Until then, let's trigger of this event
// Bug 342358
fMICommandCache.setContextAvailable(e.getDMContext(), true);
fMICommandCache.reset();
fSuspended = true;
fStepping = false;
fResumePending = false;
} else {
fMICommandCache.reset(e.getDMContext());
}
}
///////////////////////////////////////////////////////////////////////////
// AbstractService