summaryrefslogtreecommitdiff
path: root/gdb/m68klinux-nat.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2003-07-06 18:58:26 +0000
committerAndreas Schwab <schwab@suse.de>2003-07-06 18:58:26 +0000
commite74587c9339a87d8adc7df518c488cd6de1bb5ca (patch)
treeb4adb671e5b5906fdb03d9d15e0481850e7a2c91 /gdb/m68klinux-nat.c
parent079fc49ff20a4f84be7e41762ef812a7ef338594 (diff)
downloadgdb-e74587c9339a87d8adc7df518c488cd6de1bb5ca.tar.gz
* m68klinux-nat.c (fill_fpregset): Fix use of loop index.
Diffstat (limited to 'gdb/m68klinux-nat.c')
-rw-r--r--gdb/m68klinux-nat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/m68klinux-nat.c b/gdb/m68klinux-nat.c
index e077deadc27..86e22b7c72c 100644
--- a/gdb/m68klinux-nat.c
+++ b/gdb/m68klinux-nat.c
@@ -380,12 +380,12 @@ fill_fpregset (elf_fpregset_t *fpregsetp, int regno)
/* Fill in the floating-point registers. */
for (i = FP0_REGNUM; i < FP0_REGNUM + 8; i++)
if (regno == -1 || regno == i)
- regcache_collect (regno, FPREG_ADDR (fpregsetp, regno - FP0_REGNUM));
+ regcache_collect (i, FPREG_ADDR (fpregsetp, i - FP0_REGNUM));
/* Fill in the floating-point control registers. */
for (i = M68K_FPC_REGNUM; i <= M68K_FPI_REGNUM; i++)
if (regno == -1 || regno == i)
- regcache_collect (regno, (char *) &fpregsetp->fpcntl[regno - M68K_FPC_REGNUM]);
+ regcache_collect (i, (char *) &fpregsetp->fpcntl[i - M68K_FPC_REGNUM]);
}
#ifdef HAVE_PTRACE_GETREGS