From 07a79bf04850095f765025a403163818c9aac3f2 Mon Sep 17 00:00:00 2001 From: Eugene Tarassov Date: Sun, 21 Oct 2012 13:25:48 -0700 Subject: TCF Debugger: fixed regression: instruction stepping button does not work --- .../cdt/ui/commands/TCFReverseDebuggingPropertyTester.java | 8 ++++---- .../internal/cdt/ui/commands/TCFReverseToggleCommand.java | 12 ++++++------ 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() { 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() { public void run() { - done(node.getModel().isInstructionSteppingEnabled()); + done(node.getModel().isReverseDebugEnabled()); }; }.get(); } -- cgit v1.2.3