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

            Bug ID: 100446
           Summary: GDB has problems reading GCC's debugging info level
                    -g3
           Product: gcc
           Version: 10.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rdiezmail-gcc at yahoo dot de
  Target Milestone: ---

GDB has excessive CPU load and memory usage with -g3 debug info. Sometimes it
makes GDB unusable.

There are problems with debug (non LTO) builds, but most issues come with when
building with LTO, like for example missing or weird C++ symbols. The release
ELF seems to have lost most C++ symbols, and there are many entries like this:

00010d6b l       .debug_info    00000000 
00010d6b l       .debug_info    00000000 
00010d6b l       .debug_info    00000000 
00010d6b l       .debug_info    00000000 

More details about this problem are here:

https://sourceware.org/bugzilla/show_bug.cgi?id=27754

It looks like a GCC issue, and not a GDB issue.

I asked in the mailing list but got no answer at all:

https://gcc.gnu.org/pipermail/gcc-help/2021-April/140221.html

Reply via email to