Make "set/show debug coff_pe_read" a zuinteger instead of uinteger.
authorPedro Alves <palves@redhat.com>
Tue, 26 Mar 2013 18:40:46 +0000 (18:40 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 26 Mar 2013 18:40:46 +0000 (18:40 +0000)
Being a uinteger means you can't disable debug output after enabling it...

  (gdb) show debug coff_pe_read
  Coff PE read debugging is 0.
  (gdb) set debug coff_pe_read 0
  (gdb) show debug coff_pe_read
  Coff PE read debugging is unlimited.
  (gdb)

gdb/
2013-03-26  Pedro Alves  <palves@redhat.com>

* coff-pe-read.c (_initialize_coff_pe_read): Make the command
zuinteger instead of uinteger.

gdb/ChangeLog
gdb/coff-pe-read.c

index 7551eafdbdd1ec5339e19ace5f9430c6c12a8d8e..7d20af0fa649a5800a00d801d5995dcadd033b8c 100644 (file)
@@ -1,3 +1,8 @@
+2013-03-26  Pedro Alves  <palves@redhat.com>
+
+       * coff-pe-read.c (_initialize_coff_pe_read): Make the command
+       zuinteger instead of uinteger.
+
 2013-03-26  Pedro Alves  <palves@redhat.com>
 
        * record.c (record_insn_history_size_setshow_var)
index c930bacebff5e115c2e5f867ecad1ad7b71636c7..01e9b51dc2df22a9c7cad9cbeb7b7d103662fee4 100644 (file)
@@ -707,12 +707,12 @@ void _initialize_coff_pe_read (void);
 void
 _initialize_coff_pe_read (void)
 {
-  add_setshow_uinteger_cmd ("coff_pe_read", class_maintenance,
-                           &debug_coff_pe_read,
-                           _("Set coff PE read debugging."),
-                           _("Show coff PE read debugging."),
-                           _("When set, debugging messages for coff reading "
-                             "of exported symbols are displayed."),
-                           NULL, show_debug_coff_pe_read,
-                           &setdebuglist, &showdebuglist);
+  add_setshow_zuinteger_cmd ("coff_pe_read", class_maintenance,
+                            &debug_coff_pe_read,
+                            _("Set coff PE read debugging."),
+                            _("Show coff PE read debugging."),
+                            _("When set, debugging messages for coff reading "
+                              "of exported symbols are displayed."),
+                            NULL, show_debug_coff_pe_read,
+                            &setdebuglist, &showdebuglist);
 }