Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAMemoryBlock.java')
-rw-r--r--org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAMemoryBlock.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAMemoryBlock.java b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAMemoryBlock.java
index 822f5faf4..616578131 100644
--- a/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAMemoryBlock.java
+++ b/org.eclipse.debug.examples.core/src/org/eclipse/debug/examples/core/pda/model/PDAMemoryBlock.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2010 IBM Corporation and others.
+ * Copyright (c) 2010, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -72,8 +72,9 @@ public class PDAMemoryBlock extends PDADebugElement implements IMemoryBlock {
*/
public void setValue(long offset, byte[] bytes) throws DebugException {
int i = 0;
- while (offset < fBytes.length && i < bytes.length) {
- fBytes[(int)offset++] = bytes[i++];
+ long off = offset;
+ while (off < fBytes.length && i < bytes.length) {
+ fBytes[(int)off++] = bytes[i++];
}
fireChangeEvent(DebugEvent.CONTENT);
}

Back to the top