This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Incorrect DWARF-2 register numbers on PPC64?
- From: Geoff Keating <geoffk at desire dot geoffk dot org>
- To: amodra at bigpond dot net dot au
- Cc: gcc-patches at gcc dot gnu dot org, cagney at gnu dot org, kettenis at chello dot nl, dje at watson dot ibm dot com, gdb-patches at sources dot redhat dot com, Ulrich dot Weigand at de dot ibm dot com
- Date: Tue, 6 Jan 2004 10:07:30 -0800
- Subject: Re: Incorrect DWARF-2 register numbers on PPC64?
- References: <OFEA5CA921.302AEEB5-ON41256E00.005FB141@de.ibm.com> <200312182258.hBIMwgT25422@makai.watson.ibm.com> <200312201527.hBKFRHgI000712@elgar.kettenis.dyndns.org> <3FF5A069.1040306@gnu.org> <200401022317.i02NHQBR001191@desire.geoffk.org> <20040106152710.GB2533@bubble.modra.org>
> 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>