aboutsummaryrefslogtreecommitdiff
path: root/gdb/command.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1995-01-11 07:46:44 +0000
committerJeff Law <law@redhat.com>1995-01-11 07:46:44 +0000
commit59528079caf7ed15e688e2fc082d3b9072f6e1dc (patch)
tree039638fe80d2c371b699c9af977b3ce054606bd4 /gdb/command.c
parentb0c29749808a4e7232e4e8258df8e3aa03208e2f (diff)
downloadgdb-59528079caf7ed15e688e2fc082d3b9072f6e1dc.zip
gdb-59528079caf7ed15e688e2fc082d3b9072f6e1dc.tar.gz
gdb-59528079caf7ed15e688e2fc082d3b9072f6e1dc.tar.bz2
* command.c (show_user_1): Use print_command_line to show a user
defined command (including control structures). * top.c (init_main): Change documentation for user defined commands to indicate they may accept up to ten arguments.
Diffstat (limited to 'gdb/command.c')
-rw-r--r--gdb/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/command.c b/gdb/command.c
index f2af0d5..8a3419c 100644
--- a/gdb/command.c
+++ b/gdb/command.c
@@ -1281,10 +1281,10 @@ show_user_1 (c, stream)
fputs_filtered ("User command ", stream);
fputs_filtered (c->name, stream);
fputs_filtered (":\n", stream);
+
while (cmdlines)
{
- fputs_filtered (cmdlines->line, stream);
- fputs_filtered ("\n", stream);
+ print_command_line (cmdlines, 4);
cmdlines = cmdlines->next;
}
fputs_filtered ("\n", stream);