[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-patch] CDI implementation for disassembly
|
Added new methods to let the UI ask for dissassembly when the
file is not accessible.
==================================================================
Index: src/org/eclipse/cdt/debug/core/cdi/ICDISourceManager.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/ICDISourceManager.java,v
retrieving revision 1.6
diff -u -r1.6 ICDISourceManager.java
--- src/org/eclipse/cdt/debug/core/cdi/ICDISourceManager.java 24 Sep 2002 19:07:37 -0000 1.6
+++ src/org/eclipse/cdt/debug/core/cdi/ICDISourceManager.java 9 Oct 2002 22:00:13 -0000
@@ -7,6 +7,8 @@
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 @@
* @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;
}
Index: src/org/eclipse/cdt/debug/core/cdi/model/ICDIInstruction.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/model/ICDIInstruction.java,v
retrieving revision 1.1
diff -u -r1.1 ICDIInstruction.java
--- src/org/eclipse/cdt/debug/core/cdi/model/ICDIInstruction.java 13 Aug 2002 00:12:44 -0000 1.1
+++ src/org/eclipse/cdt/debug/core/cdi/model/ICDIInstruction.java 9 Oct 2002 22:00:13 -0000
@@ -15,6 +15,22 @@
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.
*
* @return the offset of this machine instruction