This is the mail archive of the
mailing list for the Archer project.
Re: [RFC] Proposal for a new DWARF name index section
>>>>> "Tom" == Tom Tromey <email@example.com> writes:
Tom> Also, I made another funny hack tonight. I changed gdb to read
Tom> .debug_aranges and .debug_gnu_index in a background thread. This was
Tom> pretty easy to do; it really just few a couple global __thread
Tom> variables. (I didn't attempt reading full symbols in a separate thread,
Tom> because that seems a lot more involved.)
BTW, what I mean by this is that when using the indices, sometimes GDB
has to read full symbols for a given CU. This happens if we don't see
any index entry, or any aranges entry, for that CU. In this situation
we can't tell whether that entry was somehow stripped or not created, or
For aranges this is http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42288
I updated the .debug_gnu_index PR with a similar request.
This sort of reading has to be done in the main thread. There were just
too many problems with putting this into a separate thread -- not just
all the global variables, but this would also imply that users of the
symtabs would need to take a lock.
Tom> I'll clean up this patch a bit and push it to a new branch in archer
Tom> this week.
It is now on archer-tromey-threaded-dwarf.