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 | 525226b563e98fc59a22393f2a145b7c14d6eec1 (patch) | |
tree | bb7a06e39d33d5f2850d98a2d882ab2fb83b8aaf /gdb/solib.c | |
parent | 4d28ad1ecec979990f27959564de1657f055b97b (diff) | |
download | gdb-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/solib.c')
-rw-r--r-- | gdb/solib.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/solib.c b/gdb/solib.c index de56d5b..d516332 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -925,12 +925,12 @@ For other (relative) files, you can add values using `set solib-search-path'."), one is set. */ solib_absolute_prefix = xstrdup (gdb_sysroot); - c = add_set_cmd ("solib-search-path", class_support, var_string, - (char *) &solib_search_path, - "Set the search path for loading non-absolute shared library symbol files.\n\ -This takes precedence over the environment variables PATH and LD_LIBRARY_PATH.", - &setlist); - deprecated_add_show_from_set (c, &showlist); - set_cmd_sfunc (c, reload_shared_libraries); - set_cmd_completer (c, filename_completer); + add_setshow_optional_filename_cmd ("solib-search-path", class_support, + &solib_search_path, _("\ +Set the search path for loading non-absolute shared library symbol files."), _("\ +Show the search path for loading non-absolute shared library symbol files."), _("\ +This takes precedence over the environment variables PATH and LD_LIBRARY_PATH."), + reload_shared_libraries, + NULL, /* FIXME: i18n: */ + &setlist, &showlist); } |