Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/model/TCFNodeExecContext.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/model/TCFNodeExecContext.java b/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/model/TCFNodeExecContext.java
index 9f2a1a4d9..3e4c1d64d 100644
--- a/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/model/TCFNodeExecContext.java
+++ b/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/model/TCFNodeExecContext.java
@@ -475,7 +475,16 @@ public class TCFNodeExecContext extends TCFNode implements ISymbolOwner {
if (IDebugUIConstants.ID_DEBUG_VIEW.equals(result.getPresentationContext().getId())) {
if (!run_context.validate(done)) return false;
IRunControl.RunControlContext ctx = run_context.getData();
- children = ctx != null && ctx.hasState() ? children_stack : children_exec;
+ if (ctx != null && ctx.hasState()) {
+ if (!state.validate(done)) return false;
+ Throwable state_error = state.getError();
+ TCFContextState state_data = state.getData();
+ result.setHasChilren(state_error == null && state_data != null && state_data.is_suspended);
+ return true;
+ }
+ else {
+ children = children_exec;
+ }
}
else if (IDebugUIConstants.ID_REGISTER_VIEW.equals(result.getPresentationContext().getId())) {
if (!run_context.validate(done)) return false;

Back to the top