Re: [PATCH] gdb/python: Introduce gdb.lookup_all_static_symbols

Christian Biesinger via gdb-patches
2019-11-11T16:31:26Z

On Mon, Nov 11, 2019 at 8:27 AM Andrew Burgess
<andrew.burgess@embecosm.com> wrote:
> > Thanks! By the way, should Objfile also get a lookup_static_symbols
> > method now, similar to Objfile.lookup_static_symbol?
> >
> > (I don't personally have a use-case for this, but figured I should
> > ask)
>
> I don't think that's a crazy idea, but I don't plan to write one right
> now.
>
> My interest in this area started when I was auditing how the GDB
> function lookup_static_function (the one in symtab.c) was used, and I
> felt that the way it was used in the python code wasn't quite right.
> I don't have any specific use cases to address.
>
> We can always add extra API methods later if/when there's a need for
> them without breaking backward compatibility, so I'm happy to leave
> this for now.

OK, sounds good.

Christian