diff options
author | Pedro Alves <palves@redhat.com> | 2013-03-26 18:55:51 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2013-03-26 18:55:51 +0000 |
commit | addb4faf786052d9528df6304705c4fe5d6fc6e7 (patch) | |
tree | 6988898638f8fb9322f367786a6e01cb8708c1df | |
parent | b75bf48806da76ecb26ae64a69bf013cf978b9e0 (diff) | |
download | gdb-addb4faf786052d9528df6304705c4fe5d6fc6e7.zip gdb-addb4faf786052d9528df6304705c4fe5d6fc6e7.tar.gz gdb-addb4faf786052d9528df6304705c4fe5d6fc6e7.tar.bz2 |
Make "set/show cris-version" a zuinteger instead of uinteger.
Being a uinteger means you revert back to having GDB decide the
version. It makes no sense to have an "unlimited" version.
(gdb) show cris-version
The current CRIS version is 0.
(gdb) set cris-version 0
(gdb) show cris-version
The current CRIS version is unlimited.
(gdb)
gdb/
2013-03-26 Pedro Alves <palves@redhat.com>
* cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
command zuinteger instead of uinteger.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/cris-tdep.c | 18 |
2 files changed, 14 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7d20af0..ec48b97 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2013-03-26 Pedro Alves <palves@redhat.com> + * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version" + command zuinteger instead of uinteger. + +2013-03-26 Pedro Alves <palves@redhat.com> + * coff-pe-read.c (_initialize_coff_pe_read): Make the command zuinteger instead of uinteger. diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c index ce916dd..c1f07bb 100644 --- a/gdb/cris-tdep.c +++ b/gdb/cris-tdep.c @@ -3914,17 +3914,17 @@ _initialize_cris_tdep (void) gdbarch_register (bfd_arch_cris, cris_gdbarch_init, cris_dump_tdep); /* CRIS-specific user-commands. */ - add_setshow_uinteger_cmd ("cris-version", class_support, - &usr_cmd_cris_version, - _("Set the current CRIS version."), - _("Show the current CRIS version."), - _("\ + add_setshow_zuinteger_cmd ("cris-version", class_support, + &usr_cmd_cris_version, + _("Set the current CRIS version."), + _("Show the current CRIS version."), + _("\ Set to 10 for CRISv10 or 32 for CRISv32 if autodetection fails.\n\ Defaults to 10. "), - set_cris_version, - NULL, /* FIXME: i18n: Current CRIS version - is %s. */ - &setlist, &showlist); + set_cris_version, + NULL, /* FIXME: i18n: Current CRIS version + is %s. */ + &setlist, &showlist); add_setshow_enum_cmd ("cris-mode", class_support, cris_modes, &usr_cmd_cris_mode, |