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
> > 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 compiler is based on GCC 4.1. I don't really know what GCC 4.3 does.
How would the range help with -ffunction-section, though? Does the
linker known how to remove one of the ranges when he discards an
unused function?
> The patch is fine, either way.
Thanks, will commit shortly.
--
Joel