This is the mail archive of the
mailing list for the binutils project.
Re: [RFC] Wrong register numbers in .dwarf_frame on Linux/PowerPC
- From: David Edelsohn <dje dot gcc at gmail dot com>
- To: Ulrich Weigand <uweigand at de dot ibm dot com>
- Cc: geoffk at geoffk dot org, jakub at redhat dot com, gcc-patches at gcc dot gnu dot org, binutils at sourceware dot org, gdb-patches at sourceware dot org
- Date: Mon, 26 Nov 2012 15:04:45 -0500
- Subject: Re: [RFC] Wrong register numbers in .dwarf_frame on Linux/PowerPC
- References: <201211261910.qAQJA63I009670@d06av02.portsmouth.uk.ibm.com>
On Mon, Nov 26, 2012 at 2:10 PM, Ulrich Weigand <firstname.lastname@example.org> wrote:
> So I'm wondering where to go from here. I guess we could:
> 1. Bring GCC (and gas) behaviour in compliance with the documented ABI
> by removing the #undef DBX_REGISTER_NUMBER and changing gas's
> md_reg_eh_frame_to_debug_frame to the original implementation from
> Jakub's patch. That would make GDB work well on new files, but
> there are a large number of binaries out there where we continue
> to have the same behaviour as today ...
> 2. Leave GCC and gas as-is and modify GDB to expect GCC numbering in
> .dwarf_frame, except for the condition code register. This would
> break debugging of files built with GCC 4.0 and 4.1 unless we
> want to add a special hack for that.
> 3. Like 2., but remove the condition code hack: simply use identical
> numbers in .eh_frame and .dwarf_frame. This would make PowerPC
> like other Linux platforms in that respect.
I vote for (3).