[Bug debug/54205] New: recursive .debug_macro inclusions

tromey at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Aug 8 19:52:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54205

             Bug #: 54205
           Summary: recursive .debug_macro inclusions
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: tromey@gcc.gnu.org


Created attachment 27963
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27963
readelf output

I built git master gcc today.
Then I ran the libstdc++ pretty-printer tests.
One of these tests (48362.cc) caused gdb to die, so I investigated.
It turns out that gcc is emitting recursive DW_MACRO_GNU_transparent_include
calls in .debug_macro.  I previously thought I fixed this problem in
http://sourceware.org/bugzilla/show_bug.cgi?id=13568
-- but the fix was insufficient; and in any case I think gcc should not do
this.
I'm attaching the readelf dump of the section so you can see the issue.



More information about the Gcc-bugs mailing list