Re: Disambiguating symbols by module

Christian Biesinger via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAPTJ0XFOUJcg6ZEohzYwoqudkvC=+LKSpxsKtLdjFw7edGuxbA@mail.gmail.com>
On Thu, Sep 2, 2021 at 4:49 PM Alexander Miloslavskiy via Gdb
<[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.