mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fix for synchronization bug in CFormattedMemoryBlock.
This commit is contained in:
parent
33825fd97a
commit
25f35a02c8
1 changed files with 4 additions and 4 deletions
|
@ -85,14 +85,14 @@ public class CFormattedMemoryBlock extends CDebugElement
|
|||
Arrays.fill( fDirtyBytes, false );
|
||||
}
|
||||
|
||||
public void set( int start, int end, boolean value )
|
||||
public void set( int start, int length, boolean value )
|
||||
{
|
||||
Arrays.fill( fDirtyBytes, start, end, value );
|
||||
Arrays.fill( fDirtyBytes, start, start + length, value );
|
||||
}
|
||||
|
||||
public void set( ByteRange range, boolean value )
|
||||
{
|
||||
Arrays.fill( fDirtyBytes, range.getStart(), range.getLength(), value );
|
||||
Arrays.fill( fDirtyBytes, range.getStart(), range.getStart() + range.getLength(), value );
|
||||
}
|
||||
|
||||
public ByteRange[] getDirtyRanges( byte[] bytes )
|
||||
|
@ -599,7 +599,7 @@ public class CFormattedMemoryBlock extends CDebugElement
|
|||
{
|
||||
byte[] bytes = itemToBytes( newValue.toCharArray() );
|
||||
setBytes( index * getWordSize(), bytes );
|
||||
fDirtyBytes.set( index * getWordSize(), index * getWordSize() + bytes.length, true );
|
||||
fDirtyBytes.set( index * getWordSize(), bytes.length, true );
|
||||
resetRows();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue