[Google 4.8 Patch] Generate gnu-pubnames for definitions only. Not declarations.

2013-10-09 Thread Sterling Augustine
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:

Re: [Google 4.8 Patch] Generate gnu-pubnames for definitions only. Not declarations.

2013-10-09 Thread Cary Coutant
2013-10-09 Sterling Augustine saugust...@google.com * dwarf2out.c (include_pubname_in_output): Add conditional on is_declaration_die and debug_generate_pubnames. OK for google 4.8 branch. Thanks! -cary