aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-script.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2010-03-28 18:00:57 +0000
committerPedro Alves <palves@redhat.com>2010-03-28 18:00:57 +0000
commitd350db38349d6866e90c129e418e20146a2f86f3 (patch)
tree94c8eb84e837b537e81085ac5d502f62ec63cf09 /gdb/cli/cli-script.c
parent69f6c109fa1d8bb64915f207c4f92942deb3cad0 (diff)
downloadgdb-d350db38349d6866e90c129e418e20146a2f86f3.zip
gdb-d350db38349d6866e90c129e418e20146a2f86f3.tar.gz
gdb-d350db38349d6866e90c129e418e20146a2f86f3.tar.bz2
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c
index 660ea46..0b85bab 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