Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2012-09-19 13:54:26 -0400
committerPawel Piech2012-09-20 12:27:31 -0400
commitd26abb2366cc155bcf08a49e5216feb73378a57b (patch)
treed07b69832c9d93ef5c633ffdddf0acf1f5fc3fe5
parent388119d5b525f3b295a2feb1bfb450701e56b3cb (diff)
downloadorg.eclipse.tcf-d26abb2366cc155bcf08a49e5216feb73378a57b.tar.gz
org.eclipse.tcf-d26abb2366cc155bcf08a49e5216feb73378a57b.tar.xz
org.eclipse.tcf-d26abb2366cc155bcf08a49e5216feb73378a57b.zip
Bug 389924 - When requesting less data than is in the cache the TCFMemoryBlockRetrieval is copying the memory cache and not the data which results in an exception
-rw-r--r--plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFMemoryBlockRetrieval.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFMemoryBlockRetrieval.java b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFMemoryBlockRetrieval.java
index b82c30028..d7d74f722 100644
--- a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFMemoryBlockRetrieval.java
+++ b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFMemoryBlockRetrieval.java
@@ -263,7 +263,7 @@ class TCFMemoryBlockRetrieval implements IMemoryBlockRetrievalExtension {
MemoryByte[] res = mem_data.data;
if (units < mem_data.data.length) {
res = new MemoryByte[(int)units];
- System.arraycopy(mem_data, offs, res, 0, res.length);
+ System.arraycopy(mem_data.data, offs, res, 0, res.length);
}
setHistoryFlags();
done(res);

Back to the top