This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/commit/dwarf] Create partial symbols for nested subprograms
>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:
Tom> My patch defers reading partial symbol tables until they are needed.
Tom> This is done on a per-objfile basis, so some user requests can be
Tom> satisfied without reading all the psymbols for the inferior.
Joel> Oh, wow. How do you detect when partial symbols are needed or not?
To find the places needing a call to require_partial_symbols, first I
read a bunch of code, then I ran the test suite, and finally I did
some interactive tests while debugging the modified gdb.
Essentially, the drawback of this approach is that, before writing
code that uses psymbols, you must decide whether they should be loaded
or not.
In some cases, other sorts of changes are appropriate. E.g., I
changed have_partial_symbols() to have two loops -- one that first
checks whether any partial symbols exist, and then a second to try to
demand-load partial symbols.
Joel> (it's ok if you don't have time to answer my question now - I will
Joel> find out anyways when you do submit the patch here, so...)
If you want to see it sooner, I posted it to the archer list.
Also it is in the archer git repository.
Tom