diff --git a/debug/org.eclipse.cdt.debug.core/ChangeLog b/debug/org.eclipse.cdt.debug.core/ChangeLog index 98eb8ed025f..a01ebcb8727 100644 --- a/debug/org.eclipse.cdt.debug.core/ChangeLog +++ b/debug/org.eclipse.cdt.debug.core/ChangeLog @@ -1,3 +1,7 @@ +2005-01-10 Mikhail Khodjaiants + PR 82601 changes to the memory block interface + * cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIMemoryBlock.java + 2005-01-11 Mikhail Khodjaiants Use the asynchronous implementation for resume, suspend, step etc provided by eclipse 3.1. * CDebugTarget.java diff --git a/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIMemoryBlock.java b/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIMemoryBlock.java index a82179a49eb..09365cbf87c 100644 --- a/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIMemoryBlock.java +++ b/debug/org.eclipse.cdt.debug.core/cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIMemoryBlock.java @@ -23,6 +23,18 @@ import org.eclipse.cdt.debug.core.cdi.CDIException; * @since Jul 18, 2002 */ public interface ICDIMemoryBlock extends ICDIObject { + + /** + * Bit mask used to indicate a byte is read-only. + */ + public static final byte READ_ONLY = 0x01; + + /** + * Bit mask used to indicate a byte is valid. + */ + public static final byte VALID = 0x02; + + /** * Returns the start address of this memory block. * @@ -50,7 +62,16 @@ public interface ICDIMemoryBlock extends ICDIObject { * */ byte[] getBytes() throws CDIException; - + + /** + * Returns this memory byte's attribute as a bit mask. + * The method throw IndexOutOfBoundsException if the offset + * is out of range of the block. + * + * @return this memory byte's attribute as a bit mask + */ + public byte getFlags(int offset); + /** * Sets the value of the bytes in this memory block at the specified * offset within this memory block to the spcified bytes.