[debug] PR42288 emit empty .debug_aranges section

Mark Wielaard mjw@redhat.com
Tue Apr 26 10:02:00 GMT 2011


Hi,

This PR was put on hold for a while since gdb didn't immediately need
it. But the consensus seemed that it was a good idea to always output
the address ranges (.debug_arange section) information if a CU
(.debug_info section) was emitted. Because the consumer has no way to
tell the difference between an empty table that we omitted and failure
to generate a table that would have contained data. We recently
discussed this again (see PR), and it still seems like a good thing. So
here it a patch to just do that:

2011-04-26  Mark Wielaard  <mjw@redhat.com>

    PR42288
    * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
    when info_section_emitted.

Tested on i686-pc-linux-gnu, no changes in test results.

Cheers,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aranges.patch
Type: text/x-patch
Size: 1217 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110426/94d3db9c/attachment.bin>


More information about the Gcc-patches mailing list