* command.c (show_user_1): Use print_command_line to show a user
authorJeff Law <law@redhat.com>
Wed, 11 Jan 1995 07:46:44 +0000 (07:46 +0000)
committerJeff Law <law@redhat.com>
Wed, 11 Jan 1995 07:46:44 +0000 (07:46 +0000)
defined command (including control structures).

* top.c (init_main): Change documentation for user defined
commands to indicate they may accept up to ten arguments.

gdb/command.c
gdb/top.c

index f2af0d5aa12936f1eaf36e8127a953de25d6b04a..8a3419c6a46e4021648608d944317f409b3e4eea 100644 (file)
@@ -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);
index 0c8bae3270349d8367fae35621ac41c18eb1be14..acc2066264cce78655aa87b7aed8b65f3d0c42cc 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -3394,7 +3394,7 @@ End with a line of just \"end\".");
 Definition appears on following lines, one command per line.\n\
 End with a line of just \"end\".\n\
 Use the \"document\" command to give documentation for the new command.\n\
-Commands defined in this way do not take arguments.");
+Commands defined in this way may have up to ten arguments.");
 
 #ifdef __STDC__
   c = add_cmd ("source", class_support, source_command,