1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +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,9 +334,11 @@ 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++) {
newBlock[j].setFlags(fBlock[distance + j].getFlags());
if (newBlock[j].getValue() != fBlock[distance + j].getValue())
changed = true;
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)
@ -373,9 +375,11 @@ 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++) {
newBlock[distance + j].setFlags(fBlock[j].getFlags());
if (newBlock[distance + j].getValue() != fBlock[j].getValue())
changed = true;
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)