diff options
author | Michael Snyder <msnyder@specifix.com> | 2011-02-14 23:41:33 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@specifix.com> | 2011-02-14 23:41:33 +0000 |
commit | 1a163d2b16a3192e4724a4f6270fe5a2d58d1465 (patch) | |
tree | 1f466828e1a172fcc32c7c64ecce6c4ef21ea07d /gdb/copying.c | |
parent | aa4ca091d8e015ba58ad951d0df13d2127e7c633 (diff) | |
download | gdb-1a163d2b16a3192e4724a4f6270fe5a2d58d1465.tar.gz |
2011-02-14 Michael Snyder <msnyder@vmware.com>
* command.h (enum command_class): New class 'no_set_class', for
"show" commands without a corresponding "set" command.
* value.c (_initialize_values): Use 'no_set_class' for "show values".
* copying.c (_initialize_copying): Ditto for "show copying" and
"show warranty".
* cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
"show version".
* cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
which there is no corresponding "set" command (eg. "show copying").
Diffstat (limited to 'gdb/copying.c')
-rw-r--r-- | gdb/copying.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/copying.c b/gdb/copying.c index 6be9b8fb5b0..d608a63669e 100644 --- a/gdb/copying.c +++ b/gdb/copying.c @@ -649,10 +649,10 @@ show_warranty_command (char *ignore, int from_tty) void _initialize_copying (void) { - add_cmd ("copying", no_class, show_copying_command, + add_cmd ("copying", no_set_class, show_copying_command, _("Conditions for redistributing copies of GDB."), &showlist); - add_cmd ("warranty", no_class, show_warranty_command, + add_cmd ("warranty", no_set_class, show_warranty_command, _("Various kinds of warranty you do not have."), &showlist); |