Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Fix fill_fpregset in m68klinux-nat.c
@ 2003-07-06 18:59 Andreas Schwab
  0 siblings, 0 replies; only message in thread
From: Andreas Schwab @ 2003-07-06 18:59 UTC (permalink / raw)
  To: gdb-patches

Found this by inspection.  Committed in HEAD and 6.0 branch.

Andreas.

2003-07-06  Andreas Schwab  <schwab@suse.de>

	* m68klinux-nat.c (fill_fpregset): Fix use of loop index.

--- gdb/m68klinux-nat.c.~1.18.~	2003-05-09 10:17:32.000000000 +0200
+++ gdb/m68klinux-nat.c	2003-07-06 20:56:22.000000000 +0200
@@ -380,12 +380,12 @@ fill_fpregset (elf_fpregset_t *fpregsetp
   /* 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-07-06 18:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-06 18:59 Fix fill_fpregset in m68klinux-nat.c Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox