mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 17:26:01 +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:
parent
a3be88af27
commit
f9be56f5d4
1 changed files with 5 additions and 0 deletions
|
@ -394,11 +394,16 @@ public class GDBRunControl_7_0_NS extends AbstractDsfService implements IMIRunCo
|
||||||
// Container case. The container is considered suspended as long
|
// Container case. The container is considered suspended as long
|
||||||
// as one of its thread is suspended
|
// as one of its thread is suspended
|
||||||
if (context instanceof IContainerDMContext) {
|
if (context instanceof IContainerDMContext) {
|
||||||
|
boolean hasThread = false;
|
||||||
for (IMIExecutionDMContext threadContext : fThreadRunStates.keySet()) {
|
for (IMIExecutionDMContext threadContext : fThreadRunStates.keySet()) {
|
||||||
if (DMContexts.isAncestorOf(threadContext, context)) {
|
if (DMContexts.isAncestorOf(threadContext, context)) {
|
||||||
|
hasThread = true;
|
||||||
if (isSuspended(threadContext)) return 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
|
// Default case
|
||||||
|
|
Loading…
Add table
Reference in a new issue