From: Srinath Avadhanula <srinathava@gmail.com>
To: gdb@sourceware.org
Subject: Python events.new_objfile with "set auto-solib-add off"
Date: Wed, 28 Oct 2020 09:45:15 -0400 [thread overview]
Message-ID: <CAKMNpPHmaVy+tQYZK6J0-SdRF6k020S69Tq7qKYa8YEHDEA7Yw@mail.gmail.com> (raw)
Hi,
We have an application which (unfortunately) loads a ton of shared
libraries. Typically, we are only interested in debugging a small subset of
these libraries. We use a combination of "set auto-solib-add off" and
"sharedlibrary" commands to only load a selected set of symbols.
However, the "sharedlibrary" command can only be issued after the
executable actually loads the shared library. This is a bit of an annoyance.
I was hoping that I could therefore use the Python events.new_objfile
listener to issue a sharedlibrary command if we detect that a library of
interest is loaded. However, it looks like this particular event just does
not fire if "set auto-solib-add off" is set.
Is there a Python API which I can use to get notified that a new shared
library is loaded by the inferior (even if no symbols have been loaded for
that shared library)?
Regards,
Srinath
reply other threads:[~2020-10-28 13:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=CAKMNpPHmaVy+tQYZK6J0-SdRF6k020S69Tq7qKYa8YEHDEA7Yw@mail.gmail.com \
--to=srinathava@gmail.com \
--cc=gdb@sourceware.org \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).