From 31930ca041e1b8e9838ebb0dfe4ea9fcfad4ccd4 Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Sun, 13 Oct 2002 02:33:21 +0000 Subject: [PATCH] new method createMemoryBlock(), remove method getBlock(). --- .../cdt/debug/core/cdi/ICDIMemoryManager.java | 26 +++++++------------ 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/ICDIMemoryManager.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/ICDIMemoryManager.java index 2d7ae2914b8..affbc1690c9 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/ICDIMemoryManager.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/ICDIMemoryManager.java @@ -17,20 +17,22 @@ import org.eclipse.cdt.debug.core.cdi.model.ICDIMemoryBlock; public interface ICDIMemoryManager extends ICDISessionObject { /** - * Adds the given memory block to the debug session. + * Returns a memory block specified by given identifier. * - * @param memoryBlock - the memory block to be added - * @exception CDIException on failure. Reasons include: + * @param address + * @param length - how much for address + * @return a memory block with the specified identifier + * @throws CDIException on failure. Reasons include: */ - void addBlock( ICDIMemoryBlock memoryBlock ) throws CDIException; - + ICDIMemoryBlock createMemoryBlock(long address, int length) throws CDIException; + /** * Removes the given memory block from the debug session. * * @param memoryBlock - the memory block to be removed * @exception CDIException on failure. Reasons include: */ - void removeBlock( ICDIMemoryBlock memoryBlock ); + void removeBlock(ICDIMemoryBlock memoryBlock) throws CDIException; /** * Removes the given array of memory blocks from the debug session. @@ -38,7 +40,7 @@ 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. @@ -47,14 +49,6 @@ public interface ICDIMemoryManager extends ICDISessionObject */ void removeAllBlocks() throws CDIException; - /** - * Returns a memory block specified by given identifier. - * - * @param id - the block identifier - * @return a memory block with the specified identifier - * @throws CDIException on failure. Reasons include: - */ - ICDIMemoryBlock getBlock( String id ) throws CDIException; /** * Returns an array of all memory blocks set for this debug session. @@ -62,5 +56,5 @@ public interface ICDIMemoryManager extends ICDISessionObject * @return an array of all memory blocks set for this debug session * @throws CDIException on failure. Reasons include: */ - ICDIMemoryBlock[] getBlocks() throws CDIException; + ICDIMemoryBlock[] getMemoryBlocks() throws CDIException; }