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

Bug 341396: A process that has not been started should be considered as suspended in non-top mode too

This commit is contained in:
Marc Khouzam 2011-03-30 17:19:07 +00:00
parent a3be88af27
commit f9be56f5d4

View file

@ -394,11 +394,16 @@ public class GDBRunControl_7_0_NS extends AbstractDsfService implements IMIRunCo
// Container case. The container is considered suspended as long
// as one of its thread is suspended
if (context instanceof IContainerDMContext) {
boolean hasThread = false;
for (IMIExecutionDMContext threadContext : fThreadRunStates.keySet()) {
if (DMContexts.isAncestorOf(threadContext, context)) {
hasThread = true;
if (isSuspended(threadContext)) return true;
}
}
// If this container does not have any threads, it means it wasn't started
// yet, so we can consider it suspended
if (hasThread == false) return true;
}
// Default case