This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix dwarf3 compile_unit debug info


On Wed, Dec 27, 2006 at 07:09:30AM -0200, Alexandre Oliva wrote:
> When the PC range of a compile unit is not contiguous, we emit a
> non-standard DW_AT_entry_pc as an attribute for a compile_unit node in
> dwarf3 debug info, instead of the standard DW_AT_low_pc.
> 
> Also, we fail to emit DW_AT_ranges for such a node.

I believe GDB will handle both of these fine, but did you check?

> The ranges probably won't quite work as expected in case of discarded
> sections (.GNU.linkonce, garbage collected or merged), since IIRC
> removed labels will resolve to zero in debug sections, and this will
> make the range list appear to be terminated at that point.  I don't
> see any way to avoid this, unfortunately.  Any ideas?

I think we'll have no choice but to either (A) put the debug info in a
COMDAT group like we should have done long ago, or (B) teach the linker
how to relax range lists.


-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]