mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-30 13:23:50 +08:00
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:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user