From d350db38349d6866e90c129e418e20146a2f86f3 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Sun, 28 Mar 2010 18:00:57 +0000 Subject: 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. --- gdb/cli/cli-script.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/cli') 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 -- cgit v1.1