diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-02-21 04:31:59 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-02-21 04:31:59 +0000 |
commit | 7ab044018aac127cb2867aadf8faa4a3a2e46142 (patch) | |
tree | 9bed9e14cf7de9e50d165b8178bafbedc47120b4 /gdb/i386-tdep.c | |
parent | 78f5381d69fee5c3fc74a2358267b425190cad54 (diff) | |
download | ppe42-binutils-7ab044018aac127cb2867aadf8faa4a3a2e46142.tar.gz ppe42-binutils-7ab044018aac127cb2867aadf8faa4a3a2e46142.zip |
2005-02-20 Andrew Cagney <cagney@gnu.org>
Use add_setshow_enum_cmd through out.
* arch-utils.c, charset.c, demangle.c, i386-tdep.c: Update.
* infrun.c, mips-tdep.c, osabi.c, serial.c, tui/tui-win.c: Update.
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r-- | gdb/i386-tdep.c | 40 |
1 files changed, 17 insertions, 23 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index fd0f5cfa55..240a8b5890 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -2275,32 +2275,26 @@ _initialize_i386_tdep (void) register_gdbarch_init (bfd_arch_i386, i386_gdbarch_init); /* Add the variable that controls the disassembly flavor. */ - { - struct cmd_list_element *new_cmd; - - new_cmd = add_set_enum_cmd ("disassembly-flavor", no_class, - valid_flavors, - &disassembly_flavor, - "\ -Set the disassembly flavor, the valid values are \"att\" and \"intel\", \ -and the default value is \"att\".", - &setlist); - deprecated_add_show_from_set (new_cmd, &showlist); - } + add_setshow_enum_cmd ("disassembly-flavor", no_class, valid_flavors, + &disassembly_flavor, _("\ +Set the disassembly flavor."), _("\ +Show the disassembly flavor."), _("\ +The valid values are \"att\" and \"intel\", and the default value is \"att\"."), + NULL, + NULL, /* FIXME: i18n: */ + &setlist, &showlist); /* Add the variable that controls the convention for returning structs. */ - { - struct cmd_list_element *new_cmd; - - new_cmd = add_set_enum_cmd ("struct-convention", no_class, - valid_conventions, - &struct_convention, "\ -Set the convention for returning small structs, valid values \ -are \"default\", \"pcc\" and \"reg\", and the default value is \"default\".", - &setlist); - deprecated_add_show_from_set (new_cmd, &showlist); - } + add_setshow_enum_cmd ("struct-convention", no_class, valid_conventions, + &struct_convention, _("\ +Set the convention for returning small structs."), _("\ +Show the convention for returning small structs."), _("\ +Valid values are \"default\", \"pcc\" and \"reg\", and the default value\n\ +is \"default\"."), + NULL, + NULL, /* FIXME: i18n: */ + &setlist, &showlist); gdbarch_register_osabi_sniffer (bfd_arch_i386, bfd_target_coff_flavour, i386_coff_osabi_sniffer); |