Re: [PATCH] allow gdb to access altivec registers

Mark Kettenis
2005-10-17T21:05:17Z

> 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