Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreutarass2011-06-22 14:22:30 -0400
committereutarass2011-06-22 14:22:30 -0400
commita060d018e0c0a29c27321e6ffcd1d0cc95805d0c (patch)
tree2fb3255627bb904df7096b0d793452d72805c63b /plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse
parent34ccbc839b6b9df0c9130724b5028a2ace0439ed (diff)
downloadorg.eclipse.tcf-a060d018e0c0a29c27321e6ffcd1d0cc95805d0c.tar.gz
org.eclipse.tcf-a060d018e0c0a29c27321e6ffcd1d0cc95805d0c.tar.xz
org.eclipse.tcf-a060d018e0c0a29c27321e6ffcd1d0cc95805d0c.zip
TCF Debugger: fixed: when debug context exits it should be removed from pending memory view updates.
Diffstat (limited to 'plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse')
-rw-r--r--plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/model/TCFModel.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/model/TCFModel.java b/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/model/TCFModel.java
index 7c15c7657..72ca0812a 100644
--- a/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/model/TCFModel.java
+++ b/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/model/TCFModel.java
@@ -202,7 +202,7 @@ public class TCFModel implements IElementContentProvider, IElementLabelProvider,
private class MemoryBlocksUpdate extends TCFDataCache<Map<String,TCFMemoryBlockRetrieval>> {
- private final Set<String> changeset = new HashSet<String>();
+ final Set<String> changeset = new HashSet<String>();
MemoryBlocksUpdate(IChannel channel) {
super(channel);
@@ -735,6 +735,7 @@ public class TCFModel implements IElementContentProvider, IElementLabelProvider,
void onMemoryChanged(String id) {
if (channel == null) return;
+ if (mem_retrieval.size() == 0) return;
if (mem_blocks_update == null) {
mem_blocks_update = new MemoryBlocksUpdate(channel);
if (wait_for_views_update_after_step) {
@@ -794,6 +795,7 @@ public class TCFModel implements IElementContentProvider, IElementLabelProvider,
}
action_results.remove(id);
context_map.remove(id);
+ if (mem_blocks_update != null) mem_blocks_update.changeset.remove(id);
}
launch_node.onAnyContextAddedOrRemoved();
// Close debug session if the last context is removed:

Back to the top