Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorJohn Cortell2007-09-05 18:18:11 +0000
committerJohn Cortell2007-09-05 18:18:11 +0000
commitdd735e2672f167683e288aa1369bdf1cfb2a1363 (patch)
tree1c78a4a1d1128bb7ab0ffcacf2f99875496d3ca1 /debug
parent10365b4ff85afa7260387b14fd700adc9f6dba83 (diff)
downloadorg.eclipse.cdt-dd735e2672f167683e288aa1369bdf1cfb2a1363.tar.gz
org.eclipse.cdt-dd735e2672f167683e288aa1369bdf1cfb2a1363.tar.xz
org.eclipse.cdt-dd735e2672f167683e288aa1369bdf1cfb2a1363.zip
Support getting the ICDIThread associated with a CThread via IAdaptable, as is done with CDebugTarget and CStackFrame
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CThread.java3
1 files changed, 3 insertions, 0 deletions
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 7d802baf551..b78b7b83a79 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
@@ -868,6 +868,9 @@ public class CThread extends CDebugElement implements ICThread, IRestart, IResum
if ( adapter == IMemoryBlockRetrieval.class ) {
return getDebugTarget().getAdapter( adapter );
}
+ if ( adapter == ICDIThread.class ) {
+ return getCDIThread();
+ }
return super.getAdapter( adapter );
}

Back to the top