diff options
author | Kevin Buettner <kevinb@redhat.com> | 2003-02-20 18:25:27 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2003-02-20 18:25:27 +0000 |
commit | d5bc8a9882f3edead01b48f8f7127cd198c8710d (patch) | |
tree | a68be3cf4e54f52b11ee09f140be7efd00abc687 /gdb/solib.c | |
parent | 5aad550fc0c210e966ee131aca211b5a61ac7e67 (diff) | |
download | gdb-d5bc8a9882f3edead01b48f8f7127cd198c8710d.tar.gz |
* solib.c (reload_shared_libraries): New function.
(_initialize_solib): Add callbacks for ``set solib-search-path''
and ``set solib-absolute-prefix''.
Diffstat (limited to 'gdb/solib.c')
-rw-r--r-- | gdb/solib.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/solib.c b/gdb/solib.c index a49614bbae3..da717982800 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -844,6 +844,13 @@ no_shared_libraries (char *ignored, int from_tty) do_clear_solib (NULL); } +static void +reload_shared_libraries (char *ignored, int from_tty) +{ + no_shared_libraries (NULL, from_tty); + solib_add (NULL, from_tty, NULL, auto_solib_add); +} + void _initialize_solib (void) { @@ -873,6 +880,7 @@ inferior. Otherwise, symbols must be loaded manually, using `sharedlibrary'.", For other (relative) files, you can add values using `set solib-search-path'.", &setlist); add_show_from_set (c, &showlist); + set_cmd_cfunc (c, reload_shared_libraries); set_cmd_completer (c, filename_completer); /* Set the default value of "solib-absolute-prefix" from the sysroot, if @@ -885,5 +893,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); add_show_from_set (c, &showlist); + set_cmd_cfunc (c, reload_shared_libraries); set_cmd_completer (c, filename_completer); } |