diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-02-17 17:11:04 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-02-17 17:11:04 +0000 |
commit | f397e30345ade7e6fcdf186693715ca227508511 (patch) | |
tree | 6033eeb56fea767ea786c349f82f205432d8efb3 /gdb/solib.c | |
parent | 68320ddb7e5b01262e93cf9d57ffe9ea71d289d6 (diff) | |
download | gdb-f397e30345ade7e6fcdf186693715ca227508511.zip gdb-f397e30345ade7e6fcdf186693715ca227508511.tar.gz gdb-f397e30345ade7e6fcdf186693715ca227508511.tar.bz2 |
2005-02-17 Andrew Cagney <cagney@gnu.org>
* cli/cli-decode.c (add_setshow_filename_cmd): Set the completer
to filename_completer.
* solib.c (_initialize_solib, reload_shared_libraries): Use
add_setshow_filename_cmd.
* serial.c (_initialize_serial): Ditto.
* remote-utils.c (_initialize_sr_support): Ditto.
Diffstat (limited to 'gdb/solib.c')
-rw-r--r-- | gdb/solib.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/gdb/solib.c b/gdb/solib.c index c9f0888..82c009f 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -879,7 +879,8 @@ no_shared_libraries (char *ignored, int from_tty) } static void -reload_shared_libraries (char *ignored, int from_tty) +reload_shared_libraries (char *ignored, int from_tty, + struct cmd_list_element *e) { no_shared_libraries (NULL, from_tty); solib_add (NULL, from_tty, NULL, auto_solib_add); @@ -910,14 +911,14 @@ inferior. Otherwise, symbols must be loaded manually, using `sharedlibrary'.", &setlist), &showlist); - 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); - deprecated_add_show_from_set (c, &showlist); - set_cmd_cfunc (c, reload_shared_libraries); - set_cmd_completer (c, filename_completer); + add_setshow_filename_cmd ("solib-absolute-prefix", class_support, + &solib_absolute_prefix, _("\ +Set prefix for loading absolute shared library symbol files."), _("\ +Show prefix for loading absolute shared library symbol files."), _("\ +For other (relative) files, you can add values using `set solib-search-path'."), + reload_shared_libraries, + NULL, + &setlist, &showlist); /* Set the default value of "solib-absolute-prefix" from the sysroot, if one is set. */ @@ -929,6 +930,6 @@ For other (relative) files, you can add values using `set solib-search-path'.", This takes precedence over the environment variables PATH and LD_LIBRARY_PATH.", &setlist); deprecated_add_show_from_set (c, &showlist); - set_cmd_cfunc (c, reload_shared_libraries); + set_cmd_sfunc (c, reload_shared_libraries); set_cmd_completer (c, filename_completer); } |