From: Michael Snyder <msnyder@cygnus.com>
To: gdb-patches@sources.redhat.com
Cc: kevinb@redhat.com
Subject: [RFA] New solib function: discard all solib symbols.
Date: Tue, 17 Apr 2001 14:00:00 -0000 [thread overview]
Message-ID: <3ADCAC58.39B9F204@cygnus.com> (raw)
The purpose of this function is actually for handling shared libs on remote targets,
but I figured it might be useful as a user command (complementary to the "sharedlib"
command which loads all solib symbols).
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.
Index: solib.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/solib.c,v
retrieving revision 1.166
diff -c -3 -p -r1.166 solib.c
*** solib.c 2001/03/26 19:54:37 1.166
--- solib.c 2001/04/17 20:45:01
*************** sharedlibrary_command (char *args, int f
*** 809,814 ****
--- 809,820 ----
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)
*************** _initialize_solib (void)
*** 819,824 ****
--- 825,832 ----
"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,
next reply other threads:[~2001-04-17 14:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-17 14:00 Michael Snyder [this message]
2001-04-17 14:15 ` Kevin Buettner
2001-04-17 14:35 ` Michael Snyder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3ADCAC58.39B9F204@cygnus.com \
--to=msnyder@cygnus.com \
--cc=gdb-patches@sources.redhat.com \
--cc=kevinb@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox