From e854db5a0150e24e5d210eeaf31b95e0a7be6467 Mon Sep 17 00:00:00 2001 From: Ken Ryall Date: Fri, 28 Apr 2006 03:16:55 +0000 Subject: [PATCH] Threads are always "current" if the target supports thread control. --- .../org/eclipse/cdt/debug/internal/core/model/CThread.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CThread.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CThread.java index 3a5cf5931a9..d8131b1eb20 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CThread.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CThread.java @@ -32,6 +32,7 @@ import org.eclipse.cdt.debug.core.cdi.model.ICDIBreakpoint; import org.eclipse.cdt.debug.core.cdi.model.ICDIObject; import org.eclipse.cdt.debug.core.cdi.model.ICDIStackFrame; import org.eclipse.cdt.debug.core.cdi.model.ICDITargetConfiguration; +import org.eclipse.cdt.debug.core.cdi.model.ICDITargetConfiguration2; import org.eclipse.cdt.debug.core.cdi.model.ICDIThread; import org.eclipse.cdt.debug.core.model.CDebugElementState; import org.eclipse.cdt.debug.core.model.ICDebugElementStatus; @@ -783,6 +784,11 @@ public class CThread extends CDebugElement implements ICThread, IRestart, IResum } protected void setCurrent( boolean current ) { + if (!current) + { + if (getCDITarget().getConfiguration() instanceof ICDITargetConfiguration2 && ((ICDITargetConfiguration2)getCDITarget().getConfiguration()).supportsThreadControl()) + current = true; // When the debugger can control individual threads treat every thread is "current" + } fIsCurrent = current; }