[RFC PATCH 7/8] gdb/ctf: don't use psymtabs, create symtabs directly
Tom Tromey
tom@tromey.com
Tue Feb 3 23:05:41 GMT 2026
>>>>> "Simon" == Simon Marchi <simark@simark.ca> writes:
Simon> I think it would be safer for each quick_symbol_functions to search its
Simon> own stuff only. What I'm thinking is that the
Simon> expanded_symbols_functions can hold a vector<compunit_symtab *>,
Simon> containing the compunit_symtabs created by this reader. The search
Simon> method of expanded_symbols_functions would search those compunits. If
Simon> you have both the JIT reader and the CTF reader active, then they would
Simon> both push there own expanded_symbols_functions instance, with their own
Simon> list of compunit_symtabs.
This would be totally fine and might help us get rid of the last things
that iterate over all compunits. Aside from genuine needs -- "maint"
commands and relocation -- I tend to think this should not be done.
Tom
More information about the Gdb
mailing list