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.
This commit is contained in:
parent
258ea6c825
commit
8625200f9f
4 changed files with 140 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue