diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/ICDISourceManager.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/ICDISourceManager.java index 4e7f3806b9a..ee3e771eef4 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/ICDISourceManager.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/ICDISourceManager.java @@ -7,6 +7,8 @@ package org.eclipse.cdt.debug.core.cdi; import java.io.File; +import org.eclipse.cdt.debug.core.cdi.model.ICDIInstruction; + /** * * Maintains the list of directories to search for source files. @@ -50,5 +52,27 @@ public interface ICDISourceManager extends ICDISessionObject * @throws CDIException on failure. Reasons include: */ void reset() throws CDIException; + + /** + * @param startAdress is the begining address + * @param endAddress is the end address + * @throws CDIException on failure. + */ + ICDIInstruction[] getInstructions(String startAddress, String endAddress) throws CDIException; + + /** + * @param filename is the name of the file to disassemble + * @param linenum is the line number to disassemble around + * @throws CDIException onf failure + */ + ICDIInstruction[] getInstructions(String filename, int linenum) throws CDIException; + + /** + * @param filename is the name of the file to disassemble + * @param linenum is the line number to disassemble around + * @param lines is the number of disassembly to produced + * @throws CDIException onf failure + */ + ICDIInstruction[] getInstructions(String filename, int linenum, int lines) throws CDIException; } diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/model/ICDIInstruction.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/model/ICDIInstruction.java index a671cc48888..f915ea439cc 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/model/ICDIInstruction.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/model/ICDIInstruction.java @@ -14,6 +14,22 @@ package org.eclipse.cdt.debug.core.cdi.model; */ public interface ICDIInstruction extends ICDIObject { + /** + * Returns the Address. + * @return the address. + */ + long getAdress(); + + /** + * @return the function name. + */ + String getFuntionName(); + + /** + * @return the instruction. + */ + String getInstruction(); + /** * Returns the instruction's offset. *