2011-02-14 Michael Snyder <msnyder@vmware.com>
[deliverable/binutils-gdb.git] / gdb / cli / cli-setshow.c
index c676f3bf3bcdacd2082e99942992fe9199718c08..6acdd9156c659e3af91db06bedbe4a22471dc201 100644 (file)
@@ -434,18 +434,21 @@ cmd_show_list (struct cmd_list_element *list, int from_tty, char *prefix)
        }
       else
        {
-         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);
+         if (list->class != no_set_class)
+           {
+             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);
+           }
        }
     }
   /* Close the tuple.  */
This page took 0.02678 seconds and 4 git commands to generate.