From: Christian Biesinger <cbiesinger@google.com>
To: Alexander Miloslavskiy <alexandr.miloslavskiy@gmail.com>
Cc: Reuben Thomas via Gdb <gdb@sourceware.org>
Subject: Re: Disambiguating symbols by module
Date: Fri, 3 Sep 2021 12:25:13 -0400 [thread overview]
Message-ID: <CAPTJ0XFOUJcg6ZEohzYwoqudkvC=+LKSpxsKtLdjFw7edGuxbA@mail.gmail.com> (raw)
In-Reply-To: <bf00c04e-a606-a7f4-cfeb-7ee168c0c2cc@gmail.com>
On Thu, Sep 2, 2021 at 4:49 PM Alexander Miloslavskiy via Gdb
<gdb@sourceware.org> wrote:
> Here, the symbol I want is a non-debugging symbol. This also means that
> I can't disambiguate it by the source file name.
>
> Is there a syntax to disambiguate the symbol?
The python API lets you do this:
gdb.lookup_objfile("libfoo").lookup_global_symbol("ps")
But I don't recall if you can call functions in the inferior from Python.
Christian
next prev parent reply other threads:[~2021-09-03 16:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-02 20:48 Alexander Miloslavskiy
2021-09-03 14:31 ` Matt Rice
2021-09-03 14:35 ` Alexander Miloslavskiy
2021-09-03 14:53 ` Matt Rice
2021-09-03 14:57 ` Alexander Miloslavskiy
2021-09-03 16:06 ` Martin Simmons
2021-09-03 16:13 ` Alexander Miloslavskiy
2021-09-03 16:25 ` Christian Biesinger [this message]
2021-09-03 20:58 ` Alexander Miloslavskiy
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='CAPTJ0XFOUJcg6ZEohzYwoqudkvC=+LKSpxsKtLdjFw7edGuxbA@mail.gmail.com' \
--to=cbiesinger@google.com \
--cc=alexandr.miloslavskiy@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).