1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-11 18:25:40 +02:00

Disassembly should provide an adapter for IExecFialeInfo.

This commit is contained in:
Mikhail Khodjaiants 2004-04-21 23:06:37 +00:00
parent cf31f83443
commit d2db6b3af9
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2004-04-21 Mikhail Khodjaiants
Disassembly should provide an adapter for IExecFialeInfo.
* Disassembly.java
2004-04-20 Mikhail Khodjaiants 2004-04-20 Mikhail Khodjaiants
The "getCFileGlobals" method of "IExecFileInfo" throws "DebugException". The "getCFileGlobals" method of "IExecFileInfo" throws "DebugException".
* IExecFileInfo.java * IExecFileInfo.java

View file

@ -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.IAsmInstruction;
import org.eclipse.cdt.debug.core.model.ICStackFrame; import org.eclipse.cdt.debug.core.model.ICStackFrame;
import org.eclipse.cdt.debug.core.model.IDisassembly; import org.eclipse.cdt.debug.core.model.IDisassembly;
import org.eclipse.cdt.debug.core.model.IExecFileInfo;
import org.eclipse.debug.core.DebugException; import org.eclipse.debug.core.DebugException;
/** /**
@ -140,4 +141,13 @@ public class Disassembly extends CDebugElement implements IDisassembly {
public void dispose() { public void dispose() {
fInstructions = null; 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 );
}
} }