This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/4] dwarf2read.c: handle alternate dwarf2 debug sections name.
On May 23, 2011, at 5:22 PM, Tom Tromey wrote:
>>>>>> "Tristan" == Tristan Gingold <gingold@adacore.com> writes:
>
> Tristan> Unfortunately, some object file format cannot accept the
> Tristan> standard dwarf2 debug section names. This is in particular the
> Tristan> case of XCOFF (aix), which has only 8 chars section names. In
> Tristan> order to support dwarf2 on aix, we need to allow alternate
> Tristan> section names.
>
> It seems reasonable to me, but I would like to understand why you took
> this route, rather than the section-name-remapping approach taken by
> bfd/mach-o.c.
>
> The mach-o approach has the nice quality that it is encapsulated in BFD.
Simply because the XCOFF maintainer was against this approach:
http://sourceware.org/ml/binutils/2011-04/msg00364.html
Both approach make sense...
Thank you for the reviews.
Tristan.