Loading some symbols, when, and index-cache
Simon Marchi
simark@simark.ca
Tue Apr 22 15:31:02 GMT 2025
On 4/9/25 3:42 AM, Lluís Batlle i Rossell wrote:
> On Tue, Apr 08, 2025 at 09:43:45AM -0400, Simon Marchi wrote:
>> On 2025-04-08 03:29, Lluís Batlle i Rossell wrote:
>>> I will check those pending patches. Are they likely to be integrated?
>>
>> Yes, it's from Tom Tromey, so it's probably good :). I hope to find the
>> time to look at them soon, to add my approval.
>
> I thought that one interesting approach would be to restrict the
> tab-completion to the "minimal" symbols, as a user config option. I wonder
> if that set is more than enough for many cases.
Not really, because you can tab-complete much more than minimal symbols.
In production apps, minimal symbols only contain exported functions and
variables. They also don't know anything about types.
> What are the occasions where only "minimal" symbols are searched, and
> occasions where "all" symbols are searched (by means of partial symbols +
> CU loading)?
I don't know for sure. I think that full symbols are always searched
first when trying to resolve a symbol name to a symbol.
Simon
More information about the Gdb
mailing list