1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

The memory view does not display values if the address expression is '0xFFFFFFFF'.

This commit is contained in:
Mikhail Khodjaiants 2002-11-21 21:58:05 +00:00
parent 9331974459
commit 209710a46b
2 changed files with 16 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2002-11-21 Mikhail Khodjaiants
The memory view does not display values if the address expression is '0xFFFFFFFF'.
* CFormattedMemoryBlock.java
2002-11-21 Mikhail Khodjaiants 2002-11-21 Mikhail Khodjaiants
Added the handler of ICDIDestroyedEvent to 'CFormattedMemoryBlock. Added the handler of ICDIDestroyedEvent to 'CFormattedMemoryBlock.
* CFormattedMemoryBlock.java * CFormattedMemoryBlock.java

View file

@ -290,7 +290,7 @@ public class CFormattedMemoryBlock extends CDebugElement
while( bytes != null && offset < bytes.length ) while( bytes != null && offset < bytes.length )
{ {
int length = Math.min( fWordSize * fNumberOfColumns, bytes.length - offset ); int length = Math.min( fWordSize * fNumberOfColumns, bytes.length - offset );
fRows.add( new CFormattedMemoryBlockRow( getStartAddress() + offset, fRows.add( new CFormattedMemoryBlockRow( getRowAddress( offset ),
createData( bytes, offset, length ), createData( bytes, offset, length ),
createAscii( bytes, offset, length ) ) ); createAscii( bytes, offset, length ) ) );
offset += length; offset += length;
@ -791,4 +791,14 @@ public class CFormattedMemoryBlock extends CDebugElement
{ {
return fStartAddressChanged; return fStartAddressChanged;
} }
private long getRowAddress( int offset )
{
long result = getStartAddress() + offset;
if ( result > 0xFFFFFFFFL )
{
result -= 0xFFFFFFFFL;
}
return result;
}
} }