Re: Disambiguating symbols by module

Christian Biesinger via Gdb
2021-09-03T16:26:17Z

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