diff options
author | Pedro Alves <pedro@codesourcery.com> | 2010-03-28 18:00:54 +0000 |
---|---|---|
committer | Pedro Alves <pedro@codesourcery.com> | 2010-03-28 18:00:54 +0000 |
commit | 692ee4f856ea8e13108f09d4fc932da00c03dfe0 (patch) | |
tree | a5e05fb8440411e977d744ee811b1addc172566f /gdb/cli/cli-script.c | |
parent | 9b971f654a355f1b729613a62a2a301a2e2afed3 (diff) | |
download | gdb-692ee4f856ea8e13108f09d4fc932da00c03dfe0.tar.gz |
gdb/
* cli/cli-script.c (process_next_line): Handle 'stepping'.
gdb/testsuite/
* gdb.trace/while-dyn.exp (executable): New variable.
(binfile): Use it.
(test_while_stepping): New function. Move most tests here. Call
it once for each of the while-stepping, stepping and ws aliases.
Diffstat (limited to 'gdb/cli/cli-script.c')
-rw-r--r-- | gdb/cli/cli-script.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c index 660ea469dc6..0b85bab77bb 100644 --- a/gdb/cli/cli-script.c +++ b/gdb/cli/cli-script.c @@ -932,7 +932,8 @@ process_next_line (char *p, struct command_line **command, int parse_commands, /* Check for while, if, break, continue, etc and build a new command line structure for them. */ if ((p_end - p >= 14 && !strncmp (p, "while-stepping", 14)) - || (p_end -p >= 2 && !strncmp (p, "ws", 2))) + || (p_end - p >= 8 && !strncmp (p, "stepping", 8)) + || (p_end - p >= 2 && !strncmp (p, "ws", 2))) { /* Because validate_actionline and encode_action lookup command's line as command, we need the line to |