mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 10:46:02 +02:00
Fix for bug 78604: Disassembly causes Java exception when disassembling beyond fn(?).
Added the "getAddressFactory" method to the "IDisassembly" interface.
This commit is contained in:
parent
341c8766b4
commit
407463cb32
3 changed files with 17 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
2004-11-15 Mikhail Khodjaiants
|
||||
Fix for bug 78604: Disassembly causes Java exception when disassembling beyond fn(?).
|
||||
Added the "getAddressFactory" method to the "IDisassembly" interface.
|
||||
* IDisassembly.java
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
***********************************************************************/
|
||||
package org.eclipse.cdt.debug.core.model;
|
||||
|
||||
import org.eclipse.cdt.core.IAddressFactory;
|
||||
import org.eclipse.debug.core.DebugException;
|
||||
|
||||
/**
|
||||
|
@ -25,4 +26,11 @@ public interface IDisassembly extends ICDebugElement {
|
|||
* @throws DebugException if this method fails.
|
||||
*/
|
||||
IDisassemblyBlock getDisassemblyBlock( ICStackFrame frame ) throws DebugException;
|
||||
|
||||
/**
|
||||
* Returns the address factory associated with this element.
|
||||
*
|
||||
* @return the address factory
|
||||
*/
|
||||
IAddressFactory getAddressFactory();
|
||||
}
|
||||
|
|
|
@ -13,6 +13,7 @@ package org.eclipse.cdt.debug.internal.core.model;
|
|||
import java.math.BigInteger;
|
||||
import java.util.ArrayList;
|
||||
import org.eclipse.cdt.core.IAddress;
|
||||
import org.eclipse.cdt.core.IAddressFactory;
|
||||
import org.eclipse.cdt.debug.core.CDebugCorePlugin;
|
||||
import org.eclipse.cdt.debug.core.ICDebugConstants;
|
||||
import org.eclipse.cdt.debug.core.cdi.CDIException;
|
||||
|
@ -140,4 +141,11 @@ public class Disassembly extends CDebugElement implements IDisassembly {
|
|||
}
|
||||
fireChangeEvent( DebugEvent.CONTENT );
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.core.model.IDisassembly#getAddressFactory()
|
||||
*/
|
||||
public IAddressFactory getAddressFactory() {
|
||||
return ((CDebugTarget)getDebugTarget()).getAddressFactory();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue