diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-02-17 15:00:36 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-02-17 15:00:36 +0000 |
commit | 26c41df326291cfe8211f195291a26b370de9523 (patch) | |
tree | 32bbe44e4881e36b2f70e54124afdc0e8cd03313 /gdb/symfile.c | |
parent | 2c5b56ce999bb9327c42afc09ad015e850298573 (diff) | |
download | gdb-26c41df326291cfe8211f195291a26b370de9523.zip gdb-26c41df326291cfe8211f195291a26b370de9523.tar.gz gdb-26c41df326291cfe8211f195291a26b370de9523.tar.bz2 |
2005-02-17 Andrew Cagney <cagney@gnu.org>
* cli/cli-decode.c (add_setshow_cmd_full, add_setshow_enum_cmd)
(add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
(add_setshow_filename_cmd, add_setshow_string_cmd)
(add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Delete
fprint_setshow parameter.
* command.h (fprint_setshow_ftype): Delete.
(add_setshow_cmd_full, add_setshow_enum_cmd)
(add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
(add_setshow_filename_cmd, add_setshow_string_cmd)
(add_setshow_uinteger_cmd, add_setshow_zinteger_cmd): Delete
fprint_setshow parameter.
* aix-thread.c, alpha-tdep.c, arm-tdep.c, breakpoint.c: Update.
* complaints.c, cris-tdep.c, dwarf2read.c, frame.c: Update.
* hppa-tdep.c, infcall.c, m32r-rom.c, maint.c: Update.
* mips-tdep.c, nto-tdep.c, observer.c, remote-rdi.c: Update
* remote.c, target.c, cli/cli-logging.c: Update.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r-- | gdb/symfile.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index 291af7f..201a7f4 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -138,8 +138,6 @@ static int simple_overlay_update_1 (struct obj_section *); static void add_filename_language (char *ext, enum language lang); -static void set_ext_lang_command (char *args, int from_tty); - static void info_ext_lang_command (char *args, int from_tty); static char *find_separate_debug_file (struct objfile *objfile); @@ -2090,7 +2088,7 @@ add_filename_language (char *ext, enum language lang) static char *ext_args; static void -set_ext_lang_command (char *args, int from_tty) +set_ext_lang_command (char *args, int from_tty, struct cmd_list_element *e) { int i; char *cp = ext_args; @@ -3596,12 +3594,14 @@ for access from GDB."), &cmdlist); /* Filename extension to source language lookup table: */ init_filename_language_table (); - c = add_set_cmd ("extension-language", class_files, var_string_noescape, - (char *) &ext_args, - "Set mapping between filename extension and source language.\n\ -Usage: set extension-language .foo bar", - &setlist); - set_cmd_cfunc (c, set_ext_lang_command); + add_setshow_string_noescape_cmd ("extension-language", class_files, + &ext_args, _("\ +Set mapping between filename extension and source language."), _("\ +Show mapping between filename extension and source language."), _("\ +Usage: set extension-language .foo bar"), + set_ext_lang_command, + NULL, /* FIXME: i18n: */ + &setlist, &showlist); add_info ("extensions", info_ext_lang_command, _("All filename extensions associated with a source language.")); |