mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-19 15:05:36 +02:00
Patch for Ewa - bug 195777 - add return cli command as a stepping operation.
This commit is contained in:
parent
57960fd7d8
commit
b6db6179c0
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue