summaryrefslogtreecommitdiff
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
commit85cb3f2d63d99681cd5e9edd724db809aa95ecbe (patch)
tree2e1316344518f22151af84ec92cd7580c950cfe0 /gdb/cli
parent828741b06720b1d7d13909b4a850331ede7fb2d2 (diff)
downloadgdb-85cb3f2d63d99681cd5e9edd724db809aa95ecbe.tar.gz
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 1b5d342b3ad..ec11eef31b5 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);
}