From 66c9e0f2b87917011d9a37c0ee63585fb728e2ef Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Fri, 2 Jun 2000 19:04:51 +0000 Subject: [PATCH] * alphabsd-nat.c (supply_fpregset): Substract FP0_REGNUM from register number when used as index into fpr_regs array. --- gdb/ChangeLog | 5 +++++ gdb/alphabsd-nat.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f5d96be146d..01bd2381211 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2000-06-02 Mark Kettenis + + * alphabsd-nat.c (supply_fpregset): Substract FP0_REGNUM from + register number when used as index into fpr_regs array. + Tue May 30 13:31:57 2000 Andrew Cagney * defs.h (TARGET_FLOAT_FORMAT, TARGET_DOUBLE_FORMAT, diff --git a/gdb/alphabsd-nat.c b/gdb/alphabsd-nat.c index f6b607d4851..40937a81943 100644 --- a/gdb/alphabsd-nat.c +++ b/gdb/alphabsd-nat.c @@ -101,7 +101,7 @@ supply_fpregset (fpregset_t *fpregsetp) if (CANNOT_FETCH_REGISTER (i)) supply_register (i, NULL); else - supply_register (i, (char *) &fpregsetp->fpr_regs[i]); + supply_register (i, (char *) &fpregsetp->fpr_regs[i - FP0_REGNUM]); } supply_register (FPCR_REGNUM, (char *) &fpregsetp->fpr_cr); -- 2.30.2