From 6d7993318a66ede583548114bd6d20e316e317a1 Mon Sep 17 00:00:00 2001 From: "J.T. Conklin" Date: Mon, 30 Apr 2001 23:57:27 +0000 Subject: [PATCH] * ppcnbsd-nat.c (fetch_inferior_registers) (store_inferior_registers, fetch_core_registers): Changed to use fpreg[] instead of r_regs[] to access floating point registers. --- gdb/ChangeLog | 6 ++++++ gdb/ppcnbsd-nat.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c0fe6b692de..bf3030c4b79 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2001-04-30 J.T. Conklin + + * ppcnbsd-nat.c (fetch_inferior_registers) + (store_inferior_registers, fetch_core_registers): Changed to use + fpreg[] instead of r_regs[] to access floating point registers. + 2001-04-30 Elena Zannoni * sh-tdep.c: Get rid of the function prototypes. diff --git a/gdb/ppcnbsd-nat.c b/gdb/ppcnbsd-nat.c index 650c591d1c2..427f48f6ae0 100644 --- a/gdb/ppcnbsd-nat.c +++ b/gdb/ppcnbsd-nat.c @@ -59,7 +59,7 @@ fetch_inferior_registers (int regno) ptrace (PT_GETFPREGS, inferior_pid, (PTRACE_ARG3_TYPE) &inferior_fp_registers, 0); for (i = 0; i < 32; i++) - RF (FP0_REGNUM + i, inferior_fp_registers.r_regs[i]); + RF (FP0_REGNUM + i, inferior_fp_registers.fpreg[i]); #endif registers_fetched (); @@ -87,7 +87,7 @@ store_inferior_registers (int regno) #ifdef PT_SETFPREGS for (i = 0; i < 32; i++) - RS (FP0_REGNUM + i, inferior_fp_registers.r_regs[i]); + RS (FP0_REGNUM + i, inferior_fp_registers.fpreg[i]); ptrace (PT_SETFPREGS, inferior_pid, (PTRACE_ARG3_TYPE) & inferior_fp_registers, 0); #endif @@ -120,7 +120,7 @@ fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, int which, #ifdef PT_FPGETREGS /* Floating point registers */ for (i = 0; i < 32; i++) - RF (FP0_REGNUM + i, core_reg->freg.r_regs[i]); + RF (FP0_REGNUM + i, core_reg->freg.fpreg[i]); #endif registers_fetched (); -- 2.30.2