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:
parent
9331974459
commit
209710a46b
2 changed files with 16 additions and 2 deletions
|
@ -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
|
||||
Added the handler of ICDIDestroyedEvent to 'CFormattedMemoryBlock.
|
||||
* CFormattedMemoryBlock.java
|
||||
|
|
|
@ -290,7 +290,7 @@ public class CFormattedMemoryBlock extends CDebugElement
|
|||
while( bytes != null && offset < bytes.length )
|
||||
{
|
||||
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 ),
|
||||
createAscii( bytes, offset, length ) ) );
|
||||
offset += length;
|
||||
|
@ -790,5 +790,15 @@ public class CFormattedMemoryBlock extends CDebugElement
|
|||
public boolean isStartAddressChanged()
|
||||
{
|
||||
return fStartAddressChanged;
|
||||
}
|
||||
}
|
||||
|
||||
private long getRowAddress( int offset )
|
||||
{
|
||||
long result = getStartAddress() + offset;
|
||||
if ( result > 0xFFFFFFFFL )
|
||||
{
|
||||
result -= 0xFFFFFFFFL;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue