diff options
author | Pedro Alves <palves@redhat.com> | 2009-01-23 18:47:46 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-01-23 18:47:46 +0000 |
commit | 1e8fb9762b0d2c468915815f73d2fadb44543be1 (patch) | |
tree | e06f47a274d8a332ed81aec3d10e2653b8b9aa7b /gdb/valprint.c | |
parent | 278df34e1203e781f97b32320094e1831f5f9624 (diff) | |
download | gdb-1e8fb9762b0d2c468915815f73d2fadb44543be1.zip gdb-1e8fb9762b0d2c468915815f73d2fadb44543be1.tar.gz gdb-1e8fb9762b0d2c468915815f73d2fadb44543be1.tar.bz2 |
2009-01-23 Pedro Alves <pedro@codesourcery.com>
* cli/cli-decode.c (add_setshow_zuinteger_cmd): New.
* cli/cli-setshow.c (do_setshow_command): Handle it.
* command.h (enum var_types): Add var_zuinteger.
(add_setshow_zuinteger_cmd): Declare.
* valprint.c (_initialize_valprint): Change the set input-radix
and set output-radix commands to zuinteger type.
2009-01-23 Pedro Alves <pedro@codesourcery.com>
* gdb.base/radix.exp: Add tests to ensure that that set
input-radix 0 and set output-radix 0 are really rejected.
Diffstat (limited to 'gdb/valprint.c')
-rw-r--r-- | gdb/valprint.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c index 73d9a99..b61da54 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -1576,21 +1576,21 @@ Show printing of addresses."), NULL, show_addressprint, &setprintlist, &showprintlist); - add_setshow_uinteger_cmd ("input-radix", class_support, &input_radix_1, - _("\ + add_setshow_zuinteger_cmd ("input-radix", class_support, &input_radix_1, + _("\ Set default input radix for entering numbers."), _("\ Show default input radix for entering numbers."), NULL, - set_input_radix, - show_input_radix, - &setlist, &showlist); + set_input_radix, + show_input_radix, + &setlist, &showlist); - add_setshow_uinteger_cmd ("output-radix", class_support, &output_radix_1, - _("\ + add_setshow_zuinteger_cmd ("output-radix", class_support, &output_radix_1, + _("\ Set default output radix for printing of values."), _("\ Show default output radix for printing of values."), NULL, - set_output_radix, - show_output_radix, - &setlist, &showlist); + set_output_radix, + show_output_radix, + &setlist, &showlist); /* The "set radix" and "show radix" commands are special in that they are like normal set and show commands but allow two normally |