This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: [RFA/DWARF2] Handle nested subprograms in CU pc bound calculation


On Tue, Sep 30, 2008 at 08:27:57AM -0700, Joel Brobecker wrote:
> Here is what happens:
> 
>   1. When compiling with -ffunction-sections, the compiler is not
>      providing the CU PC bounds (DW_AT_low_pc and DW_AT_high_pc).
>      I would imagine that this is because functions might be removed
>      later during the link, and thus bounds might be affected.

It should provide DW_AT_ranges instead.  Is it not doing that?  What
era compiler is this?

The patch is fine, either way.

-- 
Daniel Jacobowitz
CodeSourcery


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