Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2012-09-19 17:54:26 +0000
committerEugene Tarassov2012-09-19 17:54:26 +0000
commit8090d80e8cae676f7098cc30ef1309ce3073a62a (patch)
tree2b01c8c6110e61f82d361236f15ea5296754bdc1 /plugins
parentd94f142a4d45f4c60fecd50844ff5eb72b6b65d6 (diff)
downloadorg.eclipse.tcf-8090d80e8cae676f7098cc30ef1309ce3073a62a.tar.gz
org.eclipse.tcf-8090d80e8cae676f7098cc30ef1309ce3073a62a.tar.xz
org.eclipse.tcf-8090d80e8cae676f7098cc30ef1309ce3073a62a.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
Diffstat (limited to 'plugins')
-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 346a43a1f..1f09d1492 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
@@ -271,7 +271,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