2011-02-10 Michael Snyder * cli/cli-setshow.c (cmd_show_list): Skip commands show copying, show warranty and show version. Index: cli/cli-setshow.c =================================================================== RCS file: /cvs/src/src/gdb/cli/cli-setshow.c,v retrieving revision 1.43 diff -u -p -u -p -r1.43 cli-setshow.c --- cli/cli-setshow.c 6 Jan 2011 00:57:02 -0000 1.43 +++ cli/cli-setshow.c 11 Feb 2011 20:14:22 -0000 @@ -434,18 +434,23 @@ cmd_show_list (struct cmd_list_element * } else { - struct cleanup *option_chain - = make_cleanup_ui_out_tuple_begin_end (uiout, "option"); + if (strcmp (list->name, "copying") != 0 + && strcmp (list->name, "version") != 0 + && strcmp (list->name, "warranty") != 0) + { + struct cleanup *option_chain + = make_cleanup_ui_out_tuple_begin_end (uiout, "option"); - ui_out_text (uiout, prefix); - ui_out_field_string (uiout, "name", list->name); - ui_out_text (uiout, ": "); - if (list->type == show_cmd) - do_setshow_command ((char *) NULL, from_tty, list); - else - cmd_func (list, NULL, from_tty); - /* Close the tuple. */ - do_cleanups (option_chain); + ui_out_text (uiout, prefix); + ui_out_field_string (uiout, "name", list->name); + ui_out_text (uiout, ": "); + if (list->type == show_cmd) + do_setshow_command ((char *) NULL, from_tty, list); + else + cmd_func (list, NULL, from_tty); + /* Close the tuple. */ + do_cleanups (option_chain); + } } } /* Close the tuple. */