1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 17:26:01 +02:00

Bugzilla 262210

This commit is contained in:
Randy Rohrbach 2009-01-23 17:58:24 +00:00
parent ea73ee769b
commit 17fd7a87d9

View file

@ -334,10 +334,12 @@ public class DsfMemoryBlock extends PlatformObject implements IMemoryBlockExtens
// Determine if any byte within the cell was modified
boolean changed = false;
for (int j = i; j < (i + 4) && j < length; j++) {
if ( j < fBlock.length ) {
newBlock[j].setFlags(fBlock[distance + j].getFlags());
if (newBlock[j].getValue() != fBlock[distance + j].getValue())
changed = true;
}
}
// If so, flag the whole cell as modified
if (changed)
for (int j = i; j < (i + 4) && j < length; j++) {
@ -373,10 +375,12 @@ public class DsfMemoryBlock extends PlatformObject implements IMemoryBlockExtens
// Determine if any byte within the cell was modified
boolean changed = false;
for (int j = i; j < (i + 4) && j < length; j++) {
if ( j < fBlock.length ) {
newBlock[distance + j].setFlags(fBlock[j].getFlags());
if (newBlock[distance + j].getValue() != fBlock[j].getValue())
changed = true;
}
}
// If so, flag the whole cell as modified
if (changed)
for (int j = i; j < (i + 4) && j < length; j++) {