mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 18:26:01 +02:00
Added methods to get disassemble code from the source manager.
This commit is contained in:
parent
00408c875a
commit
34558714cc
2 changed files with 40 additions and 0 deletions
|
@ -7,6 +7,8 @@ package org.eclipse.cdt.debug.core.cdi;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
|
import org.eclipse.cdt.debug.core.cdi.model.ICDIInstruction;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Maintains the list of directories to search for source files.
|
* Maintains the list of directories to search for source files.
|
||||||
|
@ -51,4 +53,26 @@ public interface ICDISourceManager extends ICDISessionObject
|
||||||
*/
|
*/
|
||||||
void reset() throws CDIException;
|
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;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,22 @@ package org.eclipse.cdt.debug.core.cdi.model;
|
||||||
*/
|
*/
|
||||||
public interface ICDIInstruction extends ICDIObject
|
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.
|
* Returns the instruction's offset.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue