mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +02:00
Extends ICDIManager.
This commit is contained in:
parent
4fcf5ad026
commit
d139001ac4
6 changed files with 101 additions and 71 deletions
|
@ -11,20 +11,10 @@ import org.eclipse.cdt.debug.core.cdi.model.ICDIMemoryBlock;
|
||||||
*
|
*
|
||||||
* The memory manager manages the collection of memory blocks
|
* The memory manager manages the collection of memory blocks
|
||||||
* specified for the debug session.
|
* specified for the debug session.
|
||||||
*
|
* Auto update is on by default.
|
||||||
* @since Jul 9, 2002
|
* @since Jul 9, 2002
|
||||||
*/
|
*/
|
||||||
public interface ICDIMemoryManager extends ICDISessionObject
|
public interface ICDIMemoryManager extends ICDIManager {
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Returns a memory block specified by given identifier.
|
|
||||||
*
|
|
||||||
* @param address
|
|
||||||
* @param length - how much for address
|
|
||||||
* @return a memory block with the specified identifier
|
|
||||||
* @throws CDIException on failure. Reasons include:
|
|
||||||
*/
|
|
||||||
ICDIMemoryBlock createMemoryBlock(String address, int length) throws CDIException;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a memory block specified by given identifier.
|
* Returns a memory block specified by given identifier.
|
||||||
|
@ -34,7 +24,19 @@ public interface ICDIMemoryManager extends ICDISessionObject
|
||||||
* @return a memory block with the specified identifier
|
* @return a memory block with the specified identifier
|
||||||
* @throws CDIException on failure. Reasons include:
|
* @throws CDIException on failure. Reasons include:
|
||||||
*/
|
*/
|
||||||
ICDIMemoryBlock createMemoryBlock(long address, int length) throws CDIException;
|
ICDIMemoryBlock createMemoryBlock(String address, int length)
|
||||||
|
throws CDIException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a memory block specified by given identifier.
|
||||||
|
*
|
||||||
|
* @param address
|
||||||
|
* @param length - how much for address
|
||||||
|
* @return a memory block with the specified identifier
|
||||||
|
* @throws CDIException on failure. Reasons include:
|
||||||
|
*/
|
||||||
|
ICDIMemoryBlock createMemoryBlock(long address, int length)
|
||||||
|
throws CDIException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes the given memory block from the debug session.
|
* Removes the given memory block from the debug session.
|
||||||
|
@ -50,7 +52,8 @@ public interface ICDIMemoryManager extends ICDISessionObject
|
||||||
* @param memoryBlock - the array of memory blocks to be removed
|
* @param memoryBlock - the array of memory blocks to be removed
|
||||||
* @exception CDIException on failure. Reasons include:
|
* @exception CDIException on failure. Reasons include:
|
||||||
*/
|
*/
|
||||||
void removeBlocks(ICDIMemoryBlock[] memoryBlocks) throws CDIException;;
|
void removeBlocks(ICDIMemoryBlock[] memoryBlocks) throws CDIException;
|
||||||
|
;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes all memory blocks from the debug session.
|
* Removes all memory blocks from the debug session.
|
||||||
|
@ -59,7 +62,6 @@ public interface ICDIMemoryManager extends ICDISessionObject
|
||||||
*/
|
*/
|
||||||
void removeAllBlocks() throws CDIException;
|
void removeAllBlocks() throws CDIException;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an array of all memory blocks set for this debug session.
|
* Returns an array of all memory blocks set for this debug session.
|
||||||
*
|
*
|
||||||
|
@ -67,4 +69,5 @@ public interface ICDIMemoryManager extends ICDISessionObject
|
||||||
* @throws CDIException on failure. Reasons include:
|
* @throws CDIException on failure. Reasons include:
|
||||||
*/
|
*/
|
||||||
ICDIMemoryBlock[] getMemoryBlocks() throws CDIException;
|
ICDIMemoryBlock[] getMemoryBlocks() throws CDIException;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,37 @@
|
||||||
|
/*
|
||||||
|
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||||
|
* All Rights Reserved.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
package org.eclipse.cdt.debug.core.cdi;
|
||||||
|
|
||||||
|
import org.eclipse.cdt.debug.core.cdi.model.ICDIRegister;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The default behaviour of the register is autoupdate on.
|
||||||
|
*/
|
||||||
|
public interface ICDIRegisterManager extends ICDIManager {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method getRegisterObjects.
|
||||||
|
* @return ICDIRegisterObject[]
|
||||||
|
* @throws CDIException
|
||||||
|
*/
|
||||||
|
ICDIRegisterObject[] getRegisterObjects() throws CDIException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method createRegister.
|
||||||
|
* @param stack
|
||||||
|
* @param reg
|
||||||
|
* @return ICDIRegister
|
||||||
|
* @throws CDIException
|
||||||
|
*/
|
||||||
|
ICDIRegister createRegister(ICDIRegisterObject reg) throws CDIException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method removeRegister, remove register from the manager list.
|
||||||
|
* @param reg
|
||||||
|
*/
|
||||||
|
void destroyRegister(ICDIRegister reg);
|
||||||
|
|
||||||
|
}
|
|
@ -10,11 +10,12 @@ import org.eclipse.cdt.debug.core.cdi.model.ICDISharedLibrary;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Manages the collection of shared libraries in the debug session.
|
* Manages the collection of shared libraries in the debug session.
|
||||||
|
* Auto update is on by default.
|
||||||
*
|
*
|
||||||
* @since: Jan 15, 2003
|
* @since: Jan 15, 2003
|
||||||
*/
|
*/
|
||||||
public interface ICDISharedLibraryManager extends ICDISessionObject
|
public interface ICDISharedLibraryManager extends ICDIManager {
|
||||||
{
|
|
||||||
/**
|
/**
|
||||||
* Returns the array of loaded shared libraries.
|
* Returns the array of loaded shared libraries.
|
||||||
*
|
*
|
||||||
|
|
|
@ -11,11 +11,11 @@ import org.eclipse.cdt.debug.core.cdi.model.ICDISignal;
|
||||||
*
|
*
|
||||||
* The signal manager manages the collection of signals defined
|
* The signal manager manages the collection of signals defined
|
||||||
* for the debug session.
|
* for the debug session.
|
||||||
*
|
* Auto update is off by default.
|
||||||
* @since Jul 9, 2002
|
* @since Jul 9, 2002
|
||||||
*/
|
*/
|
||||||
public interface ICDISignalManager extends ICDISessionObject
|
public interface ICDISignalManager extends ICDIManager {
|
||||||
{
|
|
||||||
/**
|
/**
|
||||||
* Returns the array of signals defined for this session.
|
* Returns the array of signals defined for this session.
|
||||||
*
|
*
|
||||||
|
@ -23,4 +23,5 @@ public interface ICDISignalManager extends ICDISessionObject
|
||||||
* @throws CDIException on failure. Reasons include:
|
* @throws CDIException on failure. Reasons include:
|
||||||
*/
|
*/
|
||||||
ICDISignal[] getSignals() throws CDIException;
|
ICDISignal[] getSignals() throws CDIException;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,11 +11,12 @@ import org.eclipse.cdt.debug.core.cdi.model.ICDIMixedInstruction;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Maintains the list of directories to search for source files.
|
* Maintains the list of directories to search for source files.
|
||||||
|
* Auto update is off by default.
|
||||||
*
|
*
|
||||||
* @since Jul 9, 2002
|
* @since Jul 9, 2002
|
||||||
*/
|
*/
|
||||||
public interface ICDISourceManager extends ICDISessionObject
|
public interface ICDISourceManager extends ICDIManager {
|
||||||
{
|
|
||||||
/**
|
/**
|
||||||
* Set the source search paths for the debug session.
|
* Set the source search paths for the debug session.
|
||||||
* @param String array of search paths
|
* @param String array of search paths
|
||||||
|
@ -33,14 +34,16 @@ public interface ICDISourceManager extends ICDISessionObject
|
||||||
* @param endAddress is the end address
|
* @param endAddress is the end address
|
||||||
* @throws CDIException on failure.
|
* @throws CDIException on failure.
|
||||||
*/
|
*/
|
||||||
ICDIInstruction[] getInstructions(long startAddress, long endAddress) throws CDIException;
|
ICDIInstruction[] getInstructions(long startAddress, long endAddress)
|
||||||
|
throws CDIException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param filename is the name of the file to disassemble
|
* @param filename is the name of the file to disassemble
|
||||||
* @param linenum is the line number to disassemble around
|
* @param linenum is the line number to disassemble around
|
||||||
* @throws CDIException on failure
|
* @throws CDIException on failure
|
||||||
*/
|
*/
|
||||||
ICDIInstruction[] getInstructions(String filename, int linenum) throws CDIException;
|
ICDIInstruction[] getInstructions(String filename, int linenum)
|
||||||
|
throws CDIException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param filename is the name of the file to disassemble
|
* @param filename is the name of the file to disassemble
|
||||||
|
@ -48,14 +51,18 @@ public interface ICDISourceManager extends ICDISessionObject
|
||||||
* @param lines is the number of disassembly to produced
|
* @param lines is the number of disassembly to produced
|
||||||
* @throws CDIException on failure
|
* @throws CDIException on failure
|
||||||
*/
|
*/
|
||||||
ICDIInstruction[] getInstructions(String filename, int linenum, int lines) throws CDIException;
|
ICDIInstruction[] getInstructions(String filename, int linenum, int lines)
|
||||||
|
throws CDIException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param startAddress is the begining address
|
* @param startAddress is the begining address
|
||||||
* @param endAddress is the end address
|
* @param endAddress is the end address
|
||||||
* @throws CDIException on failure.
|
* @throws CDIException on failure.
|
||||||
*/
|
*/
|
||||||
ICDIMixedInstruction[] getMixedInstructions(long startAddress, long endAddress) throws CDIException;
|
ICDIMixedInstruction[] getMixedInstructions(
|
||||||
|
long startAddress,
|
||||||
|
long endAddress)
|
||||||
|
throws CDIException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param filename is the name of the file to disassemble
|
* @param filename is the name of the file to disassemble
|
||||||
|
@ -63,7 +70,8 @@ public interface ICDISourceManager extends ICDISessionObject
|
||||||
* @param lines is the number of disassembly to produced
|
* @param lines is the number of disassembly to produced
|
||||||
* @throws CDIException on failure
|
* @throws CDIException on failure
|
||||||
*/
|
*/
|
||||||
ICDIMixedInstruction[] getMixedInstructions(String filename, int linenum) throws CDIException;
|
ICDIMixedInstruction[] getMixedInstructions(String filename, int linenum)
|
||||||
|
throws CDIException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param filename is the name of the file to disassemble
|
* @param filename is the name of the file to disassemble
|
||||||
|
@ -71,7 +79,10 @@ public interface ICDISourceManager extends ICDISessionObject
|
||||||
* @param lines is the number of disassembly to produced
|
* @param lines is the number of disassembly to produced
|
||||||
* @throws CDIException on failure
|
* @throws CDIException on failure
|
||||||
*/
|
*/
|
||||||
ICDIMixedInstruction[] getMixedInstructions(String filename, int linenum, int lines) throws CDIException;
|
ICDIMixedInstruction[] getMixedInstructions(
|
||||||
|
String filename,
|
||||||
|
int linenum,
|
||||||
|
int lines)
|
||||||
|
throws CDIException;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,15 +5,14 @@
|
||||||
*/
|
*/
|
||||||
package org.eclipse.cdt.debug.core.cdi;
|
package org.eclipse.cdt.debug.core.cdi;
|
||||||
|
|
||||||
import org.eclipse.cdt.debug.core.cdi.model.ICDIStackFrame;
|
|
||||||
import org.eclipse.cdt.debug.core.cdi.model.ICDIArgument;
|
import org.eclipse.cdt.debug.core.cdi.model.ICDIArgument;
|
||||||
import org.eclipse.cdt.debug.core.cdi.model.ICDIExpression;
|
import org.eclipse.cdt.debug.core.cdi.model.ICDIStackFrame;
|
||||||
import org.eclipse.cdt.debug.core.cdi.model.ICDIVariable;
|
import org.eclipse.cdt.debug.core.cdi.model.ICDIVariable;
|
||||||
import org.eclipse.cdt.debug.core.cdi.model.ICDIRegister;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Auto update is on by default.
|
||||||
*/
|
*/
|
||||||
public interface ICDIVariableManager extends ICDISessionObject {
|
public interface ICDIVariableManager extends ICDIManager {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method getVariableObject.
|
* Method getVariableObject.
|
||||||
|
@ -39,7 +38,7 @@ public interface ICDIVariableManager extends ICDISessionObject {
|
||||||
* @return ICDIVariableObject
|
* @return ICDIVariableObject
|
||||||
* @throws CDIException
|
* @throws CDIException
|
||||||
*/
|
*/
|
||||||
public ICDIVariableObject getVariableObject(String filename, String function, String name) throws CDIException;
|
ICDIVariableObject getVariableObject(String filename, String function, String name) throws CDIException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method createVariable.
|
* Method createVariable.
|
||||||
|
@ -51,16 +50,16 @@ public interface ICDIVariableManager extends ICDISessionObject {
|
||||||
* @return ICDIVariableObject
|
* @return ICDIVariableObject
|
||||||
* @throws CDIException
|
* @throws CDIException
|
||||||
*/
|
*/
|
||||||
public ICDIVariableObject getVariableObject(ICDIStackFrame stack, String name) throws CDIException;
|
ICDIVariableObject getVariableObject(ICDIStackFrame stack, String name) throws CDIException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method getVariableObjects.
|
* Method getVariableObjects.
|
||||||
* Returns all the variable object of that context.
|
* Returns all the local variable objects of that stackframe.
|
||||||
* @param stack
|
* @param stack
|
||||||
* @return ICDIVariableObject[]
|
* @return ICDIVariableObject[]
|
||||||
* @throws CDIException
|
* @throws CDIException
|
||||||
*/
|
*/
|
||||||
public ICDIVariableObject[] getVariableObjects(ICDIStackFrame stack) throws CDIException;
|
ICDIVariableObject[] getVariableObjects(ICDIStackFrame stack) throws CDIException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method createVariable.
|
* Method createVariable.
|
||||||
|
@ -72,27 +71,27 @@ public interface ICDIVariableManager extends ICDISessionObject {
|
||||||
* @return ICDIVariable
|
* @return ICDIVariable
|
||||||
* @throws CDIException
|
* @throws CDIException
|
||||||
*/
|
*/
|
||||||
public ICDIVariable createVariable(ICDIVariableObject var) throws CDIException;
|
ICDIVariable createVariable(ICDIVariableObject var) throws CDIException;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method getArgumentObject.
|
* Method getArgumentObject.
|
||||||
* Returns a argument Object that will hold the name and the context.
|
* Returns a argument Object that will hold the name and the stackframe.
|
||||||
* @param stack
|
* @param stack
|
||||||
* @param name
|
* @param name
|
||||||
* @return ICDIArgumentObject
|
* @return ICDIArgumentObject
|
||||||
* @throws CDIException
|
* @throws CDIException
|
||||||
*/
|
*/
|
||||||
public ICDIArgumentObject getArgumentObject(ICDIStackFrame stack, String name) throws CDIException;
|
ICDIArgumentObject getArgumentObject(ICDIStackFrame stack, String name) throws CDIException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method getArgumentObjects.
|
* Method getArgumentObjects.
|
||||||
* Returns all the arguments of that context.
|
* Returns all the local arguments of that stackframe.
|
||||||
* @param stack
|
* @param stack
|
||||||
* @return ICDIArgumentObject[]
|
* @return ICDIArgumentObject[]
|
||||||
* @throws CDIException
|
* @throws CDIException
|
||||||
*/
|
*/
|
||||||
public ICDIArgumentObject[] getArgumentObjects(ICDIStackFrame stack) throws CDIException;
|
ICDIArgumentObject[] getArgumentObjects(ICDIStackFrame stack) throws CDIException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method createArgument.
|
* Method createArgument.
|
||||||
|
@ -104,36 +103,14 @@ public interface ICDIVariableManager extends ICDISessionObject {
|
||||||
* @return ICDIArgument
|
* @return ICDIArgument
|
||||||
* @throws CDIException
|
* @throws CDIException
|
||||||
*/
|
*/
|
||||||
public ICDIArgument createArgument(ICDIArgumentObject var) throws CDIException;
|
ICDIArgument createArgument(ICDIArgumentObject var) throws CDIException;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method createExpression.
|
* Remove the variable from the manager list.
|
||||||
* Create a Variable for evaluation. A null stack means to use the current
|
* @param var
|
||||||
* stackframe. A CreatedEvent will be trigger and
|
* @return ICDIArgument
|
||||||
* ChangedEvent will also be trigger when the variable is assign a new value.
|
|
||||||
* No DestroyedEvent is trigger even when the variable goes out of scope.
|
|
||||||
* @param stack
|
|
||||||
* @param name
|
|
||||||
* @return ICDIExpression
|
|
||||||
* @throws CDIException
|
* @throws CDIException
|
||||||
*/
|
*/
|
||||||
public ICDIExpression createExpression(ICDIStackFrame stack, String name) throws CDIException;
|
void destroyVariable(ICDIVariable var) throws CDIException;
|
||||||
|
|
||||||
/**
|
|
||||||
* Method createRegister.
|
|
||||||
* @param stack
|
|
||||||
* @param reg
|
|
||||||
* @return ICDIRegister
|
|
||||||
* @throws CDIException
|
|
||||||
*/
|
|
||||||
public ICDIRegister createRegister(ICDIStackFrame stack, ICDIRegisterObject reg) throws CDIException;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Method getRegisterObjects.
|
|
||||||
* @return ICDIRegisterObject[]
|
|
||||||
* @throws CDIException
|
|
||||||
*/
|
|
||||||
public ICDIRegisterObject[] getRegisterObjects() throws CDIException;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue