https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100446
Sam James <sjames at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vries at gcc dot gnu.org --- Comment #14 from Sam James <sjames at gcc dot gnu.org> --- (In reply to R. Diez from comment #13) > Yes, sorry I forgot about that separate bug I forgot. I've added a reference > to it in the project's configure.ac next to the -g2 compiler flag, so that I > do not forget it again. No problem. > The -g3 .elf file does contain .debug_macro sections with the macros which > GDB cannot find. OK, so this is definitely https://sourceware.org/PR32381. > Do you have any idea what LTO does so very differently with regards to -g3 > debugging information? I find it very strange too. I'm new to actually learning DWARF internals (though had an adventure the other day), but Tom covers it at https://sourceware.org/bugzilla/show_bug.cgi?id=32381#c6. I have no idea yet how hard that is to fix in gdb.