From b75bf48806da76ecb26ae64a69bf013cf978b9e0 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Tue, 26 Mar 2013 18:40:46 +0000 Subject: [PATCH] Make "set/show debug coff_pe_read" a zuinteger instead of uinteger. 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 * coff-pe-read.c (_initialize_coff_pe_read): Make the command zuinteger instead of uinteger. --- gdb/ChangeLog | 5 +++++ gdb/coff-pe-read.c | 16 ++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7551eafdbdd..7d20af0fa64 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-03-26 Pedro Alves + + * coff-pe-read.c (_initialize_coff_pe_read): Make the command + zuinteger instead of uinteger. + 2013-03-26 Pedro Alves * record.c (record_insn_history_size_setshow_var) diff --git a/gdb/coff-pe-read.c b/gdb/coff-pe-read.c index c930bacebff..01e9b51dc2d 100644 --- a/gdb/coff-pe-read.c +++ b/gdb/coff-pe-read.c @@ -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); } -- 2.30.2