Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreutarass2011-08-10 15:37:51 -0400
committereutarass2011-08-10 15:37:51 -0400
commit5541f8160f664ea456f53820222d79b3913dd7ad (patch)
treeb046d12769c6626828a52c09a0c312ab1d70ebc6 /plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse
parent211ff497130b4a8c72a68244d3fae46598e86dfd (diff)
downloadorg.eclipse.tcf-5541f8160f664ea456f53820222d79b3913dd7ad.tar.gz
org.eclipse.tcf-5541f8160f664ea456f53820222d79b3913dd7ad.tar.xz
org.eclipse.tcf-5541f8160f664ea456f53820222d79b3913dd7ad.zip
TCF Debugger: fixed: suspend command in the Debug view should cancel active breakpoint actions for currently selected context.
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.java5
-rw-r--r--plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/model/TCFNodeExecContext.java2
2 files changed, 3 insertions, 4 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 ed5acf14f..79dee6a2f 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
@@ -343,7 +343,7 @@ public class TCFModel implements IElementContentProvider, IElementLabelProvider,
TCFNode node = getNode(id);
action_results.remove(id);
if (active_actions.get(id) != null) action_cnt++;
- if (node instanceof TCFNodeExecContext) {
+ if (!id.equals(context) && node instanceof TCFNodeExecContext) {
((TCFNodeExecContext)node).onContainerSuspended();
}
onMemoryChanged(id);
@@ -413,8 +413,7 @@ public class TCFModel implements IElementContentProvider, IElementLabelProvider,
TCFNode node = getNode(id);
action_results.remove(id);
if (node instanceof TCFNodeExecContext) {
- TCFNodeExecContext exe = (TCFNodeExecContext)node;
- exe.onContextSuspended(pc, reason, params);
+ ((TCFNodeExecContext)node).onContextSuspended(pc, reason, params);
}
launch_node.onAnyContextSuspendedOrChanged();
if (active_actions.get(id) == null) {
diff --git a/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/model/TCFNodeExecContext.java b/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/model/TCFNodeExecContext.java
index a82da60c0..f0d115293 100644
--- a/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/model/TCFNodeExecContext.java
+++ b/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/model/TCFNodeExecContext.java
@@ -1117,7 +1117,7 @@ public class TCFNodeExecContext extends TCFNode implements ISymbolOwner {
}
}
- private void postStateChangedDelta() {
+ public void postStateChangedDelta() {
for (TCFModelProxy p : model.getModelProxies()) {
if (IDebugUIConstants.ID_DEBUG_VIEW.equals(p.getPresentationContext().getId())) {
p.addDelta(this, IModelDelta.STATE);

Back to the top