1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00

Bug 100471: Signed/Unsigned Integer renderings show '?' for valid memory blocks.

This commit is contained in:
Mikhail Khodjaiants 2005-06-16 20:43:31 +00:00
parent 51203a09e7
commit 2a08c7bbc4
2 changed files with 10 additions and 6 deletions

View file

@ -1,3 +1,7 @@
2005-06-16 Mikhail Khodjaiants
Bug 100471: Signed/Unsigned Integer renderings show '?' for valid memory blocks.
* CMemoryBlockExtension.java
2005-06-16 Mikhail Khodjaiants
Bug 100445: The endianess of a debug target is reversed.
* CMemoryBlockExtension.java

View file

@ -158,19 +158,19 @@ public class CMemoryBlockExtension extends CDebugElement implements IMemoryBlock
byte cdiFlags = getCDIBlock().getFlags( i );
byte flags = 0;
if ( (cdiFlags & ICDIMemoryBlock.VALID) != 0 ) {
flags |= MemoryByte.HISTORY_KNOWN;
flags |= MemoryByte.HISTORY_KNOWN | MemoryByte.ENDIANESS_KNOWN;
if ( (cdiFlags & ICDIMemoryBlock.READ_ONLY) != 0 ) {
flags |= MemoryByte.READABLE;
}
else {
flags |= MemoryByte.READABLE | MemoryByte.WRITABLE;
}
if ( isBigEndian() ) {
flags |= MemoryByte.BIG_ENDIAN;
}
if ( hasChanged( getRealBlockAddress().add( BigInteger.valueOf( i ) ) ) )
flags |= MemoryByte.CHANGED;
}
if ( isBigEndian() ) {
flags |= MemoryByte.ENDIANESS_KNOWN | MemoryByte.BIG_ENDIAN;
}
if ( hasChanged( getRealBlockAddress().add( BigInteger.valueOf( i ) ) ) )
flags |= MemoryByte.CHANGED;
fBytes[i] = new MemoryByte( bytes[i], flags );
}
}