This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] allow gdb to access altivec registers
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: pgilliam at us dot ibm dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: Mon, 17 Oct 2005 23:05:11 +0200 (CEST)
- Subject: Re: [PATCH] allow gdb to access altivec registers
- References: <200510171332.13857.pgilliam@us.ibm.com>
> From: Paul Gilliam <pgilliam@us.ibm.com>
> Date: Mon, 17 Oct 2005 13:32:13 -0700
>
> In rs6000-tdep.c (rs6000_gdbarch_init), bfd_mach_ppc64 is assumed to NOT have
> altivec registers.
>
> This patch makes it assume that it does. This works for machines with the
> IBM PowerPC 970 chip, an IBM JS-20 or Apple G5 for example.
>
> If the bfd_mach_ppc64 should happen to NOT have an altivec unit, the ptrace
> to get the vector registers will fail the first time it's called and it will
> never be called again.
You're assuming Linux here, but this is generic POWER/PowerPC code.
Unless there are no 64-bit POWER/PowerPC implementations without
AltiVec unit, this patch is wrong.
Mark