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

Tom Tromey via Gdb-patches
2022-07-19T12:23:41Z

>> 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.

I didn't really read through the rest of the series -- was this the rule
followed elsewhere? I think it shouldn't be, because in gdb a linespec
should find all the matches.

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

I think so.

Tom