RE: [PATCH v5 10/15] gdb, ada: update ada_add_all_symbols

Metzger, Markus T via Gdb-patches
2022-07-19T07:14:25Z

Hello Tom,

>Markus> Iterate over objfile in search order using the objfile of the context
>Markus> block as current_objfile so the iteration can stay inside the block's
>Markus> linker namespace.
>
>I think this function is used by linespec, meaning it's called when
>setting a breakpoint. So in this case, limiting the results to the
>current namespace seems possibly incorrect to me.
>
>Was there a particular reason for this limitation?

I was simply trying to preserve the existing behavior of not knowing about
linker namespaces.

Would you want me to drop the patch to keep the objfile traversal and
collect all symbols from all namespaces?

regards,
markus.