aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2001-04-17 23:21:48 +0000
committerMichael Snyder <msnyder@vmware.com>2001-04-17 23:21:48 +0000
commitc60a7562e3f01810c911eedf62caee98b981f2e8 (patch)
tree51caf2a964e9b4086546e224fc334d153dcc9344 /gdb/solib.c
parented84f6c14944278d643810232ce167b2f0c99fea (diff)
downloadgdb-c60a7562e3f01810c911eedf62caee98b981f2e8.zip
gdb-c60a7562e3f01810c911eedf62caee98b981f2e8.tar.gz
gdb-c60a7562e3f01810c911eedf62caee98b981f2e8.tar.bz2
2001-04-17 Michael Snyder <msnyder@redhat.com>
* solib.c (no_shared_libraries): New function. Discard all symbols from shared libraries. (_initialize_solib): Add command "nosharedlibrary" as complement to the command "sharedlibrary". Unloads symbols for all solibs.
Diffstat (limited to 'gdb/solib.c')
-rw-r--r--gdb/solib.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/solib.c b/gdb/solib.c
index 0b511f2..dc83109 100644
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -809,6 +809,12 @@ sharedlibrary_command (char *args, int from_tty)
solib_add (args, from_tty, (struct target_ops *) 0);
}
+void
+no_shared_libraries (char *ignored, int from_tty)
+{
+ objfile_purge_solibs ();
+ do_clear_solib (NULL);
+}
void
_initialize_solib (void)
@@ -819,6 +825,8 @@ _initialize_solib (void)
"Load shared object library symbols for files matching REGEXP.");
add_info ("sharedlibrary", info_sharedlibrary_command,
"Status of loaded shared object libraries.");
+ add_com ("nosharedlibrary", class_files, no_shared_libraries,
+ "Unload all shared object library symbols except .");
add_show_from_set
(add_set_cmd ("auto-solib-add", class_support, var_zinteger,