diff options
author | Eli Zaretskii <eliz@gnu.org> | 2001-02-19 11:47:16 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2001-02-19 11:47:16 +0000 |
commit | fa58ee119617c4302d6bf94ff751c3ee8e1062cd (patch) | |
tree | fa0ec2445538b681e9d27d997818528437e631a0 /gdb/solib.c | |
parent | fb33b906916095eb3e0497bccbbb8017f9e4a4eb (diff) | |
download | gdb-fa58ee119617c4302d6bf94ff751c3ee8e1062cd.zip gdb-fa58ee119617c4302d6bf94ff751c3ee8e1062cd.tar.gz gdb-fa58ee119617c4302d6bf94ff751c3ee8e1062cd.tar.bz2 |
* demangle.c (demangling_style_names): New variable.
(_initialize_demangler): Fill demangling_style_names with the
names of known demangling styles from libiberty_demanglers[]. Use
add_set_enum_cmd instead of add_set_cmd, to get completion on
demangling style names.
* proc-api.c (_initialize_proc_api): Make `procfs-file' use
file-name completion.
* remote-rdi.c (_initialize_remote_rdi): Ditto for `rdilogfile'.
* solib.c (_initialize_solib): Ditto for `solib-search-path' and
`solib-absolute-prefix'.
* tracepoint.c (_initialize_tracepoint): Ditto for
`save-tracepoints'.
* win32-nat.c (_initialize_inftarg): Ditto for `dll-symbols'.
* cli/cli-cmds.c (init_cli_cmds): Make `shell' and `make' use
file-name completion.
* infcmd.c (_initialize_infcmd): Make the following commands use
the file-name completer: `tty', `args', `path', `paths', and
`run'.
Diffstat (limited to 'gdb/solib.c')
-rw-r--r-- | gdb/solib.c | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/gdb/solib.c b/gdb/solib.c index 9808e89..5fdb9a1 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -37,6 +37,7 @@ #include "environ.h" #include "language.h" #include "gdbcmd.h" +#include "completer.h" #include "solist.h" @@ -790,6 +791,8 @@ sharedlibrary_command (char *args, int from_tty) void _initialize_solib (void) { + struct cmd_list_element *c; + add_com ("sharedlibrary", class_files, sharedlibrary_command, "Load shared object library symbols for files matching REGEXP."); add_info ("sharedlibrary", info_sharedlibrary_command, @@ -806,19 +809,19 @@ must be loaded manually, using `sharedlibrary'.", &setlist), &showlist); - add_show_from_set - (add_set_cmd ("solib-absolute-prefix", class_support, var_filename, - (char *) &solib_absolute_prefix, - "Set prefix for loading absolute shared library symbol files.\n\ + c = add_set_cmd ("solib-absolute-prefix", class_support, var_filename, + (char *) &solib_absolute_prefix, + "Set prefix for loading absolute shared library symbol files.\n\ For other (relative) files, you can add values using `set solib-search-path'.", - &setlist), - &showlist); - add_show_from_set - (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), - &showlist); + &setlist); + add_show_from_set (c, &showlist); + c->completer = filename_completer; + 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); + add_show_from_set (c, &showlist); + c->completer = filename_completer; } |