diff options
author | Michael Snyder <msnyder@vmware.com> | 2001-04-17 23:21:48 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2001-04-17 23:21:48 +0000 |
commit | c60a7562e3f01810c911eedf62caee98b981f2e8 (patch) | |
tree | 51caf2a964e9b4086546e224fc334d153dcc9344 | |
parent | ed84f6c14944278d643810232ce167b2f0c99fea (diff) | |
download | gdb-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.
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/solib.c | 8 |
2 files changed, 15 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3377633..8d01274 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -5,6 +5,13 @@ of i386_saved_pc_after_call. (i386_saved_pc_after_call): New prototype. +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. + 2001-04-16 Andrew Cagney <ac131313@redhat.com> * configure.host (m68030-sony-*, m68*-isi-*, m68*-sony-*): 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, |