[Bug symtab/17547] over-eager debuginfo reading
simark at simark dot ca
sourceware-bugzilla@sourceware.org
Tue May 25 19:44:16 GMT 2021
https://sourceware.org/bugzilla/show_bug.cgi?id=17547
Simon Marchi <simark at simark dot ca> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |simark at simark dot ca
--- Comment #4 from Simon Marchi <simark at simark dot ca> ---
GDB goes through the DWARF info of all code objects to build some name index
(partial symtabs), such that if you type "break foo", it can quickly know which
compilation units contain a function or method called foo. The solution to
avoid that is to use an index (DWARF4 .gdb_index, or DWARF5 .debug_names).
Then, if debuginfod offered that, I could imagine GDB just downloading the
index section, which is small compared to the rest of the debug info. And
then, when it needs to expand a compilation unit's debug info, it could
download just the portion of the .debug_* sections that it needs (again, if
debuginfod offered that). I think it would be neat.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Gdb-prs
mailing list