diff options
author | Michael Snyder <msnyder@vmware.com> | 2011-02-14 23:41:33 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2011-02-14 23:41:33 +0000 |
commit | db5f229b95d85f40de467ebe869732cdbb18c458 (patch) | |
tree | cade0853557de249ad0dc6b61723692d5d8529f1 /gdb/command.h | |
parent | 08e796bc55ca0f881c0afd1cbd76ca8aa19d0e3f (diff) | |
download | gdb-db5f229b95d85f40de467ebe869732cdbb18c458.zip gdb-db5f229b95d85f40de467ebe869732cdbb18c458.tar.gz gdb-db5f229b95d85f40de467ebe869732cdbb18c458.tar.bz2 |
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/command.h')
-rw-r--r-- | gdb/command.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/command.h b/gdb/command.h index d2f5ca5..0e2547e 100644 --- a/gdb/command.h +++ b/gdb/command.h @@ -34,7 +34,9 @@ enum command_class no_class = -1, class_run = 0, class_vars, class_stack, class_files, class_support, class_info, class_breakpoint, class_trace, class_alias, class_bookmark, class_obscure, class_maintenance, - class_pseudo, class_tui, class_user, class_xdb + class_pseudo, class_tui, class_user, class_xdb, + no_set_class /* Used for "show" commands that have no corresponding + "set" command. */ }; /* FIXME: cagney/2002-03-17: Once cmd_type() has been removed, ``enum |