Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Khodjaiants2005-06-16 20:43:31 +0000
committerMikhail Khodjaiants2005-06-16 20:43:31 +0000
commit2a08c7bbc425b4c404a527885b5e80a8befd8694 (patch)
treeb97027b6201ba17fa3c58d5a3f907b29c96d36a8
parent51203a09e78bc926c258c0791db24d3ff13a4f16 (diff)
downloadorg.eclipse.cdt-2a08c7bbc425b4c404a527885b5e80a8befd8694.tar.gz
org.eclipse.cdt-2a08c7bbc425b4c404a527885b5e80a8befd8694.tar.xz
org.eclipse.cdt-2a08c7bbc425b4c404a527885b5e80a8befd8694.zip
Bug 100471: Signed/Unsigned Integer renderings show '?' for valid memory blocks.
-rw-r--r--debug/org.eclipse.cdt.debug.core/ChangeLog4
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CMemoryBlockExtension.java12
2 files changed, 10 insertions, 6 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/ChangeLog b/debug/org.eclipse.cdt.debug.core/ChangeLog
index 78a2aaf580b..10b43f45465 100644
--- a/debug/org.eclipse.cdt.debug.core/ChangeLog
+++ b/debug/org.eclipse.cdt.debug.core/ChangeLog
@@ -1,4 +1,8 @@
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
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CMemoryBlockExtension.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CMemoryBlockExtension.java
index c9d1dd3d0a8..d91dc1bb854 100644
--- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CMemoryBlockExtension.java
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CMemoryBlockExtension.java
@@ -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 );
}
}

Back to the top