mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 17:26:01 +02:00
Bugzilla 262210
This commit is contained in:
parent
ea73ee769b
commit
17fd7a87d9
1 changed files with 10 additions and 6 deletions
|
@ -334,9 +334,11 @@ public class DsfMemoryBlock extends PlatformObject implements IMemoryBlockExtens
|
||||||
// Determine if any byte within the cell was modified
|
// Determine if any byte within the cell was modified
|
||||||
boolean changed = false;
|
boolean changed = false;
|
||||||
for (int j = i; j < (i + 4) && j < length; j++) {
|
for (int j = i; j < (i + 4) && j < length; j++) {
|
||||||
newBlock[j].setFlags(fBlock[distance + j].getFlags());
|
if ( j < fBlock.length ) {
|
||||||
if (newBlock[j].getValue() != fBlock[distance + j].getValue())
|
newBlock[j].setFlags(fBlock[distance + j].getFlags());
|
||||||
changed = true;
|
if (newBlock[j].getValue() != fBlock[distance + j].getValue())
|
||||||
|
changed = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// If so, flag the whole cell as modified
|
// If so, flag the whole cell as modified
|
||||||
if (changed)
|
if (changed)
|
||||||
|
@ -373,9 +375,11 @@ public class DsfMemoryBlock extends PlatformObject implements IMemoryBlockExtens
|
||||||
// Determine if any byte within the cell was modified
|
// Determine if any byte within the cell was modified
|
||||||
boolean changed = false;
|
boolean changed = false;
|
||||||
for (int j = i; j < (i + 4) && j < length; j++) {
|
for (int j = i; j < (i + 4) && j < length; j++) {
|
||||||
newBlock[distance + j].setFlags(fBlock[j].getFlags());
|
if ( j < fBlock.length ) {
|
||||||
if (newBlock[distance + j].getValue() != fBlock[j].getValue())
|
newBlock[distance + j].setFlags(fBlock[j].getFlags());
|
||||||
changed = true;
|
if (newBlock[distance + j].getValue() != fBlock[j].getValue())
|
||||||
|
changed = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// If so, flag the whole cell as modified
|
// If so, flag the whole cell as modified
|
||||||
if (changed)
|
if (changed)
|
||||||
|
|
Loading…
Add table
Reference in a new issue