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

Tom Tromey via Gdb-patches
2022-07-18T16:57:17Z

>>>>> "Markus" == Markus Metzger via Gdb-patches <gdb-patches@sourceware.org> writes:

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 tend to doubt that Ada users are using dlmopen. So maybe either way
is ok. However, erring on the side of too many results seems possibly
better, just in case someone does start using this combination of
features.

Tom