1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 14:55:41 +02:00

Extends ICDIManager.

This commit is contained in:
Alain Magloire 2003-01-27 03:35:18 +00:00
parent 4fcf5ad026
commit d139001ac4
6 changed files with 101 additions and 71 deletions

View file

@ -11,20 +11,10 @@ import org.eclipse.cdt.debug.core.cdi.model.ICDIMemoryBlock;
*
* The memory manager manages the collection of memory blocks
* specified for the debug session.
*
* Auto update is on by default.
* @since Jul 9, 2002
*/
public interface ICDIMemoryManager extends ICDISessionObject
{
/**
* 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;
public interface ICDIMemoryManager extends ICDIManager {
/**
* 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
* @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.
@ -50,7 +52,8 @@ public interface ICDIMemoryManager extends ICDISessionObject
* @param memoryBlock - the array of memory blocks to be removed
* @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.
@ -59,7 +62,6 @@ public interface ICDIMemoryManager extends ICDISessionObject
*/
void removeAllBlocks() throws CDIException;
/**
* 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:
*/
ICDIMemoryBlock[] getMemoryBlocks() throws CDIException;
}

View file

@ -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);
}

View file

@ -10,11 +10,12 @@ import org.eclipse.cdt.debug.core.cdi.model.ICDISharedLibrary;
/**
*
* Manages the collection of shared libraries in the debug session.
* Auto update is on by default.
*
* @since: Jan 15, 2003
*/
public interface ICDISharedLibraryManager extends ICDISessionObject
{
public interface ICDISharedLibraryManager extends ICDIManager {
/**
* Returns the array of loaded shared libraries.
*

View file

@ -11,11 +11,11 @@ import org.eclipse.cdt.debug.core.cdi.model.ICDISignal;
*
* The signal manager manages the collection of signals defined
* for the debug session.
*
* Auto update is off by default.
* @since Jul 9, 2002
*/
public interface ICDISignalManager extends ICDISessionObject
{
public interface ICDISignalManager extends ICDIManager {
/**
* Returns the array of signals defined for this session.
*
@ -23,4 +23,5 @@ public interface ICDISignalManager extends ICDISessionObject
* @throws CDIException on failure. Reasons include:
*/
ICDISignal[] getSignals() throws CDIException;
}

View file

@ -11,11 +11,12 @@ import org.eclipse.cdt.debug.core.cdi.model.ICDIMixedInstruction;
/**
*
* Maintains the list of directories to search for source files.
* Auto update is off by default.
*
* @since Jul 9, 2002
*/
public interface ICDISourceManager extends ICDISessionObject
{
public interface ICDISourceManager extends ICDIManager {
/**
* Set the source search paths for the debug session.
* @param String array of search paths
@ -33,14 +34,16 @@ public interface ICDISourceManager extends ICDISessionObject
* @param endAddress is the end address
* @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 linenum is the line number to disassemble around
* @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
@ -48,14 +51,18 @@ public interface ICDISourceManager extends ICDISessionObject
* @param lines is the number of disassembly to produced
* @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 endAddress is the end address
* @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
@ -63,7 +70,8 @@ public interface ICDISourceManager extends ICDISessionObject
* @param lines is the number of disassembly to produced
* @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
@ -71,7 +79,10 @@ public interface ICDISourceManager extends ICDISessionObject
* @param lines is the number of disassembly to produced
* @throws CDIException on failure
*/
ICDIMixedInstruction[] getMixedInstructions(String filename, int linenum, int lines) throws CDIException;
ICDIMixedInstruction[] getMixedInstructions(
String filename,
int linenum,
int lines)
throws CDIException;
}

View file

@ -5,15 +5,14 @@
*/
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.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.ICDIRegister;
/**
* Auto update is on by default.
*/
public interface ICDIVariableManager extends ICDISessionObject {
public interface ICDIVariableManager extends ICDIManager {
/**
* Method getVariableObject.
@ -39,7 +38,7 @@ public interface ICDIVariableManager extends ICDISessionObject {
* @return ICDIVariableObject
* @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.
@ -51,16 +50,16 @@ public interface ICDIVariableManager extends ICDISessionObject {
* @return ICDIVariableObject
* @throws CDIException
*/
public ICDIVariableObject getVariableObject(ICDIStackFrame stack, String name) throws CDIException;
ICDIVariableObject getVariableObject(ICDIStackFrame stack, String name) throws CDIException;
/**
* Method getVariableObjects.
* Returns all the variable object of that context.
* Returns all the local variable objects of that stackframe.
* @param stack
* @return ICDIVariableObject[]
* @throws CDIException
*/
public ICDIVariableObject[] getVariableObjects(ICDIStackFrame stack) throws CDIException;
ICDIVariableObject[] getVariableObjects(ICDIStackFrame stack) throws CDIException;
/**
* Method createVariable.
@ -72,27 +71,27 @@ public interface ICDIVariableManager extends ICDISessionObject {
* @return ICDIVariable
* @throws CDIException
*/
public ICDIVariable createVariable(ICDIVariableObject var) throws CDIException;
ICDIVariable createVariable(ICDIVariableObject var) throws CDIException;
/**
* 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 name
* @return ICDIArgumentObject
* @throws CDIException
*/
public ICDIArgumentObject getArgumentObject(ICDIStackFrame stack, String name) throws CDIException;
ICDIArgumentObject getArgumentObject(ICDIStackFrame stack, String name) throws CDIException;
/**
* Method getArgumentObjects.
* Returns all the arguments of that context.
* Returns all the local arguments of that stackframe.
* @param stack
* @return ICDIArgumentObject[]
* @throws CDIException
*/
public ICDIArgumentObject[] getArgumentObjects(ICDIStackFrame stack) throws CDIException;
ICDIArgumentObject[] getArgumentObjects(ICDIStackFrame stack) throws CDIException;
/**
* Method createArgument.
@ -104,36 +103,14 @@ public interface ICDIVariableManager extends ICDISessionObject {
* @return ICDIArgument
* @throws CDIException
*/
public ICDIArgument createArgument(ICDIArgumentObject var) throws CDIException;
ICDIArgument createArgument(ICDIArgumentObject var) throws CDIException;
/**
* Method createExpression.
* Create a Variable for evaluation. A null stack means to use the current
* stackframe. A CreatedEvent will be trigger and
* 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
* Remove the variable from the manager list.
* @param var
* @return ICDIArgument
* @throws CDIException
*/
public ICDIExpression createExpression(ICDIStackFrame stack, String name) 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;
void destroyVariable(ICDIVariable var) throws CDIException;
}