Incorrect DWARF-2 register numbers on PPC64?
Geoff Keating
geoffk@desire.geoffk.org
Tue Jan 6 18:07:00 GMT 2004
> Date: Wed, 7 Jan 2004 01:57:10 +1030
> From: Alan Modra <amodra@bigpond.net.au>
> This patch corrects DWARF debug info register numbering for PPC targets.
> See http://gcc.gnu.org/ml/gcc/2004-01/msg00025.html for some background.
>
> I've also made a small fix to DWARF_REG_TO_UNWIND_COLUMN which
> incorrectly hardcoded an unwinder array index, and removed the confused
> FIXME. See the new comment.
>
> * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
> * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
> * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
> (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
> * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
>
> Bootstrapped powerpc-linux, no regressions.
Why is DBX_REGISTER_NUMBER in sysv4.h instead of rs6000.h?
--
- Geoffrey Keating <geoffk@geoffk.org>
More information about the Gcc-patches
mailing list