mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
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").
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user