summaryrefslogtreecommitdiff
path: root/gdb/cli/cli-script.c
diff options
context:
space:
mode:
authorJoern Rennecke <joern.rennecke@arc.com>2009-09-11 04:45:40 +0000
committerJoern Rennecke <joern.rennecke@arc.com>2009-09-11 04:45:40 +0000
commitc0b9c0330ac498673282832d8714d013569ca986 (patch)
tree7524276d1d63cb4ab23038ae8361a0228325863a /gdb/cli/cli-script.c
parent139d19ee035d132be681a95ece3bbe230664ea9c (diff)
downloadgdb-arc-insight_6_8-branch.tar.gz
gdb/insight for ARCompact (from Richard Stuckey)arc-insight_6_8-branch
Diffstat (limited to 'gdb/cli/cli-script.c')
-rw-r--r--gdb/cli/cli-script.c7
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."));