From: Michael Snyder Date: Tue, 17 Apr 2001 23:21:48 +0000 (+0000) Subject: 2001-04-17 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c60a7562e3f01810c911eedf62caee98b981f2e8;p=binutils-gdb.git 2001-04-17 Michael Snyder * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3377633d7d9..8d01274bbcb 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 + + * 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 * configure.host (m68030-sony-*, m68*-isi-*, m68*-sony-*): diff --git a/gdb/solib.c b/gdb/solib.c index 0b511f2ab93..dc831095e6f 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,