mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-26 18:35:32 +02:00
Bug 342358: An inferior ran to completion should be considered suspended
This commit is contained in:
parent
9c507fe607
commit
c0f8b0d48c
2 changed files with 16 additions and 4 deletions
|
@ -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
|
// 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;
|
if (hasThread == false) return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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.
|
* @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.
|
* @noreference This method is not intended to be referenced by clients.
|
||||||
*/
|
*/
|
||||||
@DsfServiceEventHandler
|
@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());
|
fMICommandCache.reset(e.getDMContext());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// AbstractService
|
// AbstractService
|
||||||
|
|
Loading…
Add table
Reference in a new issue