From db5f229b95d85f40de467ebe869732cdbb18c458 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Mon, 14 Feb 2011 23:41:33 +0000 Subject: 2011-02-14 Michael Snyder * 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"). --- gdb/value.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/value.c') diff --git a/gdb/value.c b/gdb/value.c index 116eee2..2e07a85 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -3074,7 +3074,7 @@ A few convenience variables are given values automatically:\n\ \"$__\" holds the contents of the last address examined with \"x\"."), &showlist); - add_cmd ("values", no_class, show_values, _("\ + add_cmd ("values", no_set_class, show_values, _("\ Elements of value history around item number IDX (or last ten)."), &showlist); -- cgit v1.1