This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] allow gdb to access altivec registers


On Mon, Oct 17, 2005 at 11:05:11PM +0200, Mark Kettenis wrote:
> > 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.

We should autodetect it, anyway.  See my earlier proposal on this
subject.

I will be back to implementing that, hopefully, very soon.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]