diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2003-07-06 18:58:26 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@linux-m68k.org> | 2003-07-06 18:58:26 +0000 |
commit | a731b8319061336ed79ff4a907aaf2e02fdeb702 (patch) | |
tree | ad54edc1efa0253c7aa40bc337d83205254e8b1c /gdb | |
parent | bebd9d3f19603693e88f769f1418fa08c444cfdb (diff) | |
download | gdb-a731b8319061336ed79ff4a907aaf2e02fdeb702.zip gdb-a731b8319061336ed79ff4a907aaf2e02fdeb702.tar.gz gdb-a731b8319061336ed79ff4a907aaf2e02fdeb702.tar.bz2 |
* m68klinux-nat.c (fill_fpregset): Fix use of loop index.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/m68klinux-nat.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fefe1ab..1643931 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2003-07-06 Andreas Schwab <schwab@suse.de> + + * m68klinux-nat.c (fill_fpregset): Fix use of loop index. + 2003-07-04 Joel Brobecker <brobecker@gnat.com> * rs6000-nat.c (vmap_symtab): Fix compilation error. diff --git a/gdb/m68klinux-nat.c b/gdb/m68klinux-nat.c index e077dea..86e22b7 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 |