Hi Cary, The enclosed patch stops declaration dies from generating gnu-pubnames. Declaration dies don't include enough information to be useful to gdb, so it has to scan all the entries in the index until it finds a definition. Not including declarations prevents this problem.
Google ref: b/10191963. Sterling 2013-10-09 Sterling Augustine <saugust...@google.com> * dwarf2out.c (include_pubname_in_output): Add conditional on is_declaration_die and debug_generate_pubnames.
patch.diff
Description: Binary data