diff options
Diffstat (limited to 'gdb/cli/cli-script.c')
-rw-r--r-- | gdb/cli/cli-script.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c index e6fbe3f1397..dac43454d8c 100644 --- a/gdb/cli/cli-script.c +++ b/gdb/cli/cli-script.c @@ -287,8 +287,15 @@ execute_user_command (struct cmd_list_element *c, char *args) cmdlines = c->user_commands; if (cmdlines == 0) + { /* Null command */ +// begin ARC + /* If there are no user commands to be executed, execute the + callback function instead. */ + c->func(c, NULL, 0); +// end ARC return; + } if (++user_call_depth > max_user_call_depth) error (_("Max user call depth exceeded -- command aborted.")); |