mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-15 21:15:23 +02:00
Support getting the ICDIThread associated with a CThread via IAdaptable, as is done with CDebugTarget and CStackFrame
This commit is contained in:
parent
10365b4ff8
commit
dd735e2672
1 changed files with 3 additions and 0 deletions
|
@ -868,6 +868,9 @@ public class CThread extends CDebugElement implements ICThread, IRestart, IResum
|
||||||
if ( adapter == IMemoryBlockRetrieval.class ) {
|
if ( adapter == IMemoryBlockRetrieval.class ) {
|
||||||
return getDebugTarget().getAdapter( adapter );
|
return getDebugTarget().getAdapter( adapter );
|
||||||
}
|
}
|
||||||
|
if ( adapter == ICDIThread.class ) {
|
||||||
|
return getCDIThread();
|
||||||
|
}
|
||||||
return super.getAdapter( adapter );
|
return super.getAdapter( adapter );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue