* m68klinux-nat.c (fill_fpregset): Fix use of loop index.
authorAndreas Schwab <schwab@linux-m68k.org>
Sun, 6 Jul 2003 18:58:26 +0000 (18:58 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Sun, 6 Jul 2003 18:58:26 +0000 (18:58 +0000)
gdb/ChangeLog
gdb/m68klinux-nat.c

index fefe1ab4e054756dbdda316f7a8243d4355624b6..1643931972cf181d6860170bc6ef349c6c6577d6 100644 (file)
@@ -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.
 2003-07-04  Joel Brobecker  <brobecker@gnat.com>
 
        * rs6000-nat.c (vmap_symtab): Fix compilation error.
index e077deadc27c69038c76cd6ee1ef9cd1085581f3..86e22b7c72c7afdf750311f891b6a33d2bc74caa 100644 (file)
@@ -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)
   /* 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)
 
   /* 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
 }
 
 #ifdef HAVE_PTRACE_GETREGS
This page took 0.03442 seconds and 4 git commands to generate.