Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorDoug Schaefer2007-08-28 18:08:25 +0000
committerDoug Schaefer2007-08-28 18:08:25 +0000
commitb6db6179c0c718b004f2617f49b49d279bdb407c (patch)
treee7d4c2f89e082fd43c1bdd2c31b0adbe05d2df45 /debug
parent57960fd7d8f291550246c8d8007d20ef46532f38 (diff)
downloadorg.eclipse.cdt-b6db6179c0c718b004f2617f49b49d279bdb407c.tar.gz
org.eclipse.cdt-b6db6179c0c718b004f2617f49b49d279bdb407c.tar.xz
org.eclipse.cdt-b6db6179c0c718b004f2617f49b49d279bdb407c.zip
Patch for Ewa - bug 195777 - add return cli command as a stepping operation.
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/CLIProcessor.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/CLIProcessor.java b/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/CLIProcessor.java
index 27e8b713cd6..9a409ee8d0f 100644
--- a/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/CLIProcessor.java
+++ b/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/CLIProcessor.java
@@ -125,7 +125,7 @@ public class CLIProcessor {
static int getSteppingOperationKind(String operation) {
int type = -1;
- /* execution commands: n, next, s, step, si, stepi, u, until, finish,
+ /* execution commands: n, next, s, step, si, stepi, u, until, finish, return,
c, continue, fg */
if (operation.equals("n") || operation.equals("next")) { //$NON-NLS-1$ //$NON-NLS-2$
type = MIRunningEvent.NEXT;
@@ -140,6 +140,8 @@ public class CLIProcessor {
type = MIRunningEvent.UNTIL;
} else if (operation.startsWith("fin") && "finish".indexOf(operation) != -1) { //$NON-NLS-1$ //$NON-NLS-2$
type = MIRunningEvent.FINISH;
+ } else if (operation.startsWith("ret") && "return".indexOf(operation) != -1) { //$NON-NLS-1$ //$NON-NLS-2$
+ type = MIRunningEvent.RETURN;
} else if (operation.equals("c") || operation.equals("fg") || //$NON-NLS-1$ //$NON-NLS-2$
(operation.startsWith("cont") && "continue".indexOf(operation) != -1)) { //$NON-NLS-1$ //$NON-NLS-2$
type = MIRunningEvent.CONTINUE;

Back to the top