mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-11 10:15:39 +02:00
Disassembly should provide an adapter for IExecFialeInfo.
This commit is contained in:
parent
cf31f83443
commit
d2db6b3af9
2 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2004-04-21 Mikhail Khodjaiants
|
||||
Disassembly should provide an adapter for IExecFialeInfo.
|
||||
* Disassembly.java
|
||||
|
||||
2004-04-20 Mikhail Khodjaiants
|
||||
The "getCFileGlobals" method of "IExecFileInfo" throws "DebugException".
|
||||
* IExecFileInfo.java
|
||||
|
|
|
@ -21,6 +21,7 @@ import org.eclipse.cdt.debug.core.cdi.model.ICDIInstruction;
|
|||
import org.eclipse.cdt.debug.core.model.IAsmInstruction;
|
||||
import org.eclipse.cdt.debug.core.model.ICStackFrame;
|
||||
import org.eclipse.cdt.debug.core.model.IDisassembly;
|
||||
import org.eclipse.cdt.debug.core.model.IExecFileInfo;
|
||||
import org.eclipse.debug.core.DebugException;
|
||||
|
||||
/**
|
||||
|
@ -140,4 +141,13 @@ public class Disassembly extends CDebugElement implements IDisassembly {
|
|||
public void dispose() {
|
||||
fInstructions = null;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
|
||||
*/
|
||||
public Object getAdapter( Class adapter ) {
|
||||
if ( IExecFileInfo.class.equals( adapter ) )
|
||||
return getDebugTarget().getAdapter( adapter );
|
||||
return super.getAdapter( adapter );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue