Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2012-10-21 20:25:48 +0000
committerEugene Tarassov2012-10-21 20:25:48 +0000
commit07a79bf04850095f765025a403163818c9aac3f2 (patch)
tree01e8321b528135e9ab5a57dd2eb9c7f8df2967cf /plugins
parent8545da3d07b6ba1d90a4cb095b00348e1c314dab (diff)
downloadorg.eclipse.tcf-07a79bf04850095f765025a403163818c9aac3f2.tar.gz
org.eclipse.tcf-07a79bf04850095f765025a403163818c9aac3f2.tar.xz
org.eclipse.tcf-07a79bf04850095f765025a403163818c9aac3f2.zip
TCF Debugger: fixed regression: instruction stepping button does not work
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/commands/TCFReverseDebuggingPropertyTester.java8
-rw-r--r--plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/commands/TCFReverseToggleCommand.java12
2 files changed, 10 insertions, 10 deletions
diff --git a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/commands/TCFReverseDebuggingPropertyTester.java b/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/commands/TCFReverseDebuggingPropertyTester.java
index a8eabb898..fcda598c1 100644
--- a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/commands/TCFReverseDebuggingPropertyTester.java
+++ b/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/commands/TCFReverseDebuggingPropertyTester.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2010, 2011 Wind River Systems, Inc. and others.
+ * Copyright (c) 2010, 2012 Wind River Systems, Inc. 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
@@ -28,13 +28,13 @@ public class TCFReverseDebuggingPropertyTester extends PropertyTester {
public boolean test(Object context, String property, Object[] args, Object expectedValue) {
if (!ENABLED.equals(property)) return false;
-
+
if (context instanceof TCFNode) {
- final TCFNode node = (TCFNode)context;
+ final TCFNode node = (TCFNode)context;
try {
return new TCFTask<Boolean>() {
public void run() {
- done(node.getModel().isInstructionSteppingEnabled());
+ done(node.getModel().isReverseDebugEnabled());
};
}.get();
}
diff --git a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/commands/TCFReverseToggleCommand.java b/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/commands/TCFReverseToggleCommand.java
index cd1620bb0..0c937280d 100644
--- a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/commands/TCFReverseToggleCommand.java
+++ b/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/commands/TCFReverseToggleCommand.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2010, 2011 Wind River Systems, Inc. and others.
+ * Copyright (c) 2010, 2012 Wind River Systems, Inc. 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
@@ -32,11 +32,11 @@ public class TCFReverseToggleCommand implements IReverseToggleHandler {
public boolean execute(final IDebugCommandRequest request) {
if (request.getElements().length != 0 && request.getElements()[0] instanceof TCFNode) {
- final TCFNode node = (TCFNode)request.getElements()[0];
+ final TCFNode node = (TCFNode)request.getElements()[0];
Protocol.invokeLater(new Runnable() {
public void run() {
- boolean enabled = node.getModel().isInstructionSteppingEnabled();
- node.getModel().setInstructionSteppingEnabled(!enabled);
+ boolean enabled = node.getModel().isReverseDebugEnabled();
+ node.getModel().setReverseDebugEnabled(!enabled);
request.done();
};
});
@@ -52,11 +52,11 @@ public class TCFReverseToggleCommand implements IReverseToggleHandler {
public boolean isReverseToggled(Object context) {
if (context instanceof TCFNode) {
- final TCFNode node = (TCFNode)context;
+ final TCFNode node = (TCFNode)context;
try {
return new TCFTask<Boolean>() {
public void run() {
- done(node.getModel().isInstructionSteppingEnabled());
+ done(node.getModel().isReverseDebugEnabled());
};
}.get();
}

Back to the top