aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli
diff options
context:
space:
mode:
authorAndrew Stubbs <andrew.stubbs@st.com>2006-08-10 16:06:25 +0000
committerAndrew Stubbs <andrew.stubbs@st.com>2006-08-10 16:06:25 +0000
commit8625200f9fb649674ac2c18d6a1ba4779b5b17c5 (patch)
treeb651a482afe10aa273bce302581ba866e5d79ee7 /gdb/cli
parent258ea6c8250004895de3d5d886bec2333eceffab (diff)
downloadfsf-binutils-gdb-8625200f9fb649674ac2c18d6a1ba4779b5b17c5.zip
fsf-binutils-gdb-8625200f9fb649674ac2c18d6a1ba4779b5b17c5.tar.gz
fsf-binutils-gdb-8625200f9fb649674ac2c18d6a1ba4779b5b17c5.tar.bz2
2006-08-10 Andrew Stubbs <andrew.stubbs@st.com>
gdb/ * cli/cli-script.c (execute_user_command): Update command_next_depth on user-command call. gdb/testsuite * gdb.base/trace-commands.exp: New file.
Diffstat (limited to 'gdb/cli')
-rw-r--r--gdb/cli/cli-script.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c
index 1b5d342..ec11eef 100644
--- a/gdb/cli/cli-script.c
+++ b/gdb/cli/cli-script.c
@@ -286,6 +286,7 @@ execute_user_command (struct cmd_list_element *c, char *args)
not confused with Insight. */
in_user_command = 1;
+ command_nest_depth++;
while (cmdlines)
{
ret = execute_control_command (cmdlines);
@@ -296,6 +297,7 @@ execute_user_command (struct cmd_list_element *c, char *args)
}
cmdlines = cmdlines->next;
}
+ command_nest_depth--;
do_cleanups (old_chain);
}