* maint.c (maintenance_command, maintenance_info_command):
authorFred Fish <fnf@specifix.com>
Tue, 7 Jul 1992 16:00:30 +0000 (16:00 +0000)
committerFred Fish <fnf@specifix.com>
Tue, 7 Jul 1992 16:00:30 +0000 (16:00 +0000)
Install with allow_unknown as 0 and call help_list to show
list of possibilities when no subcommand is specified.

gdb/ChangeLog
gdb/maint.c

index 00fc56de90fa95c17264cd0736046c9ea41fee92..cfb34ca664b185a5ccf4f4c9d9226439720b412a 100644 (file)
@@ -1,3 +1,9 @@
+Tue Jul  7 09:00:42 1992  Fred Fish  (fnf@cygnus.com)
+
+       * maint.c (maintenance_command, maintenance_info_command):
+       Install with allow_unknown as 0 and call help_list to show
+       list of possibilities when no subcommand is specified.
+
 Tue Jul  7 00:20:29 1992  Fred Fish  (fnf@cygnus.com)
 
        * configure.in:  Add m68k-ericsson-*.
index f1e8999edd78f9232733bb09279cc09f84ba9200..6de6716a554090aa81fbe01c08a8e1a9147eee05 100644 (file)
@@ -54,7 +54,8 @@ maintenance_command (args, from_tty)
      char *args;
      int from_tty;
 {
-  error ("Unimplemented maintenance command '%s'", args);
+  printf ("\"maintenance\" must be followed by the name of a maintenance command.\n");
+  help_list (maintenancelist, "maintenance ", -1, stdout);
 }
 
 
@@ -111,12 +112,12 @@ _initialize_maint_cmds ()
 Includes commands to dump specific internal GDB structures in\n\
 a human readable form, including dumping of symbol tables, type\n\
 chains, etc.",
-                 &maintenancelist, "maintenance ", 1,
+                 &maintenancelist, "maintenance ", 0,
                  &cmdlist);
 
   add_prefix_cmd ("info", class_info, maintenance_info_command,
         "Maintenance command for showing things about the program being debugged.",
-                 &maintenanceinfolist, "maintenance info ", 1,
+                 &maintenanceinfolist, "maintenance info ", 0,
                  &maintenancelist);
 
   add_cmd ("dump-me", class_maintenance, maintenance_dump_me,