diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-02-21 07:08:42 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-02-21 07:08:42 +0000 |
commit | 6c403c6b569cb376577de02eacd0c5fce436ecbd (patch) | |
tree | 7b341c039886219f5ffe9bb4f8fd337ff7779001 /gdb/symfile.c | |
parent | 725b374aef285a27d3509c527f2e630d1d6c620b (diff) | |
download | gdb-6c403c6b569cb376577de02eacd0c5fce436ecbd.tar.gz |
2005-02-21 Andrew Cagney <cagney@gnu.org>
Replace string variables with a filename completer with
add_setshow_optional_filename_cmd.
* solib.c, symfile.c: Update.
* cli/cli-setshow.c: Do not tidle expand the file.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r-- | gdb/symfile.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index d5384cdccc9..a726e66deb1 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -3621,16 +3621,15 @@ cache."), &setlist, &showlist); debug_file_directory = xstrdup (DEBUGDIR); - c = (add_set_cmd - ("debug-file-directory", class_support, var_string, - (char *) &debug_file_directory, - "Set the directory where separate debug symbols are searched for.\n" - "Separate debug symbols are first searched for in the same\n" - "directory as the binary, then in the `" DEBUG_SUBDIRECTORY - "' subdirectory,\n" - "and lastly at the path of the directory of the binary with\n" - "the global debug-file directory prepended\n", - &setlist)); - deprecated_add_show_from_set (c, &showlist); - set_cmd_completer (c, filename_completer); + add_setshow_optional_filename_cmd ("debug-file-directory", class_support, + &debug_file_directory, _("\ +Set the directory where separate debug symbols are searched for."), _("\ +Show the directory where separate debug symbols are searched for."), _("\ +Separate debug symbols are first searched for in the same\n\ +directory as the binary, then in the `" DEBUG_SUBDIRECTORY "' subdirectory,\n\ +and lastly at the path of the directory of the binary with\n\ +the global debug-file directory prepended."), + NULL, + NULL, /* FIXME: i18n: */ + &setlist, &showlist); } |