RFA: don't assume gprs, fprs, some SPRS are contiguous

Kevin Buettner kevinb@redhat.com
Tue May 4 16:06:00 GMT 2004


On 03 May 2004 20:09:31 -0500
Jim Blandy <jimb@redhat.com> wrote:

> Here's a revision of a patch I posted previously, in light of the
> other patches I've posted today.
> 
> 2004-04-20  Jim Blandy  <jimb@redhat.com>
> 
> 	* ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
> 	Don't assume that the gprs, fprs, and UISA sprs are
> 	contiguous, start at register number zero, and end with fpscr.
> 	Instead, use the numbers from the tdep structure, FP0_REGNUM,
> 	and FPLAST_REGNUM.

The FPLAST_REGNUM portion of the ChangeLog entry doesn't make sense anymore.

Otherwise it looks okay provided the
s/FP0_REGNUM/tdep->ppc_fp0_regnum/ change is made.

Kevin



More information about the Gdb-patches mailing list