[Bug debug/87362] GCC produces with LTO debug info with which gdb is not happy about

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Sep 20 14:28:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87362

--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #9)
> Created attachment 44729 [details]
> patch
> 
> This avoids most of the forwarders (slightly hackish) and adds linkage names.
> 
> gdb startup is faster, more testing is in progress.

Hm.  Looks like we hit

Reading symbols from ../../obj3/gcc/lto1...done.
../../gdb/dictionary.c:690: internal-error: void
insert_symbol_hashed(dictionary*, symbol*): Assertion `SYMBOL_LANGUAGE (sym) ==
DICT_LANGUAGE (dict)->la_language' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) 

with the patch which somehow feels familiar ...

The performance testing was on an earlier patch w/o the abstract-origin fixes
(just on-demand DIE creation).

The above also reproduces with gengtype (but not with a simple test).


More information about the Gcc-bugs mailing list