aboutsummaryrefslogtreecommitdiff
path: root/gdb/irix4-nat.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1993-05-01 09:55:01 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1993-05-01 09:55:01 +0000
commitdea149ce8d5261e1198c5cc951174f2b276cc4d9 (patch)
tree9df41c1c6e9da344229f22c8fff5fcadcc7a2817 /gdb/irix4-nat.c
parentb2057735d8c9a95da0a7ccee3a6c752f2a5d40ea (diff)
downloadgdb-dea149ce8d5261e1198c5cc951174f2b276cc4d9.zip
gdb-dea149ce8d5261e1198c5cc951174f2b276cc4d9.tar.gz
gdb-dea149ce8d5261e1198c5cc951174f2b276cc4d9.tar.bz2
* config/mips/tm-mips.h (STABS_REG_TO_REGNUM): Match it with the gcc
definition. * config/mips/tm-irix3.h (STABS_REG_TO_REGNUM): Add. * irix4-nat.c (fill_fpregset): Fix bug with indexing into fpregsetp.
Diffstat (limited to 'gdb/irix4-nat.c')
-rw-r--r--gdb/irix4-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/irix4-nat.c b/gdb/irix4-nat.c
index b13e288..d2d4258 100644
--- a/gdb/irix4-nat.c
+++ b/gdb/irix4-nat.c
@@ -117,7 +117,7 @@ fill_fpregset (fpregsetp, regno)
if ((regno == -1) || (regno == regi))
{
from = (char *) &registers[REGISTER_BYTE (regi)];
- to = (char *) &(fpregsetp->fp_r.fp_regs[regi]);
+ to = (char *) &(fpregsetp->fp_r.fp_regs[regi - FP0_REGNUM]);
bcopy(from, to, REGISTER_RAW_SIZE (regi));
}
}