mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-30 20:35:38 +02:00
Fix bug 82601: Enhance the ICDIMemoryBlock interface.
This commit is contained in:
parent
ea5fe525ea
commit
3b9ce4e55a
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2005-01-12 Mikhail Khodjaiants
|
||||
Fix bug 82601: Enhance the ICDIMemoryBlock interface.
|
||||
* CMemoryBlockExtension.java
|
||||
|
||||
2005-01-10 Mikhail Khodjaiants
|
||||
PR 82601 changes to the memory block interface
|
||||
* cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIMemoryBlock.java
|
||||
|
|
|
@ -136,7 +136,10 @@ public class CMemoryBlockExtension extends CDebugElement implements IMemoryBlock
|
|||
}
|
||||
fBytes = new MemoryByte[bytes.length];
|
||||
for ( int i = 0; i < bytes.length; ++i ) {
|
||||
byte flags = MemoryByte.VALID | MemoryByte.KNOWN;
|
||||
byte cdiFlags = getCDIBlock().getFlags( i );
|
||||
byte flags = MemoryByte.KNOWN;
|
||||
flags |= ( (cdiFlags & ICDIMemoryBlock.VALID) != 0 ) ? MemoryByte.VALID : MemoryByte.READONLY; // ????
|
||||
flags |= ( (cdiFlags & ICDIMemoryBlock.READ_ONLY) != 0 ) ? MemoryByte.READONLY : 0;
|
||||
if ( hasChanged( getRealBlockAddress().add( BigInteger.valueOf( i ) ) ) )
|
||||
flags |= MemoryByte.CHANGED;
|
||||
fBytes[i] = new MemoryByte( bytes[i], flags );
|
||||
|
|
Loading…
Add table
Reference in a new issue