This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/DWARF2] Handle nested subprograms in CU pc bound calculation
- From: Daniel Jacobowitz <drow at false dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 30 Sep 2008 11:42:35 -0400
- Subject: Re: [RFA/DWARF2] Handle nested subprograms in CU pc bound calculation
- References: <20080930152757.GC23135@adacore.com>
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