aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-02-21 07:08:42 +0000
committerAndrew Cagney <cagney@redhat.com>2005-02-21 07:08:42 +0000
commit525226b563e98fc59a22393f2a145b7c14d6eec1 (patch)
treebb7a06e39d33d5f2850d98a2d882ab2fb83b8aaf /gdb/symfile.c
parent4d28ad1ecec979990f27959564de1657f055b97b (diff)
downloadgdb-525226b563e98fc59a22393f2a145b7c14d6eec1.zip
gdb-525226b563e98fc59a22393f2a145b7c14d6eec1.tar.gz
gdb-525226b563e98fc59a22393f2a145b7c14d6eec1.tar.bz2
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.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index d5384cd..a726e66 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);
}