aboutsummaryrefslogtreecommitdiff
path: root/gdb/alphabsd-nat.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2000-06-02 19:04:51 +0000
committerMark Kettenis <kettenis@gnu.org>2000-06-02 19:04:51 +0000
commit66c9e0f2b87917011d9a37c0ee63585fb728e2ef (patch)
tree0263fb35ea2a9f9e6ad1983650f4a77cd7407215 /gdb/alphabsd-nat.c
parent6b3bf560900b549065d93d5d43a9b6af0e3a5e95 (diff)
downloadgdb-66c9e0f2b87917011d9a37c0ee63585fb728e2ef.zip
gdb-66c9e0f2b87917011d9a37c0ee63585fb728e2ef.tar.gz
gdb-66c9e0f2b87917011d9a37c0ee63585fb728e2ef.tar.bz2
* alphabsd-nat.c (supply_fpregset): Substract FP0_REGNUM from
register number when used as index into fpr_regs array.
Diffstat (limited to 'gdb/alphabsd-nat.c')
-rw-r--r--gdb/alphabsd-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/alphabsd-nat.c b/gdb/alphabsd-nat.c
index f6b607d..40937a8 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);