aboutsummaryrefslogtreecommitdiff
path: root/gdb/maint.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-07-07 16:00:30 +0000
committerFred Fish <fnf@specifix.com>1992-07-07 16:00:30 +0000
commit2e9309df58b875c91e5a5e556d30abf8ff1970bb (patch)
treeff3d12b10a4dad052f8d7ad3d2efb475338a78d2 /gdb/maint.c
parenta4168049118e1955fbe9053c34c11c87d933708b (diff)
downloadgdb-2e9309df58b875c91e5a5e556d30abf8ff1970bb.zip
gdb-2e9309df58b875c91e5a5e556d30abf8ff1970bb.tar.gz
gdb-2e9309df58b875c91e5a5e556d30abf8ff1970bb.tar.bz2
* 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.
Diffstat (limited to 'gdb/maint.c')
-rw-r--r--gdb/maint.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/maint.c b/gdb/maint.c
index f1e8999..6de6716 100644
--- a/gdb/maint.c
+++ b/gdb/maint.c
@@ -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,