From: Andreas Schwab <schwab@suse.de>
To: gdb-patches@sources.redhat.com
Subject: Fix fill_fpregset in m68klinux-nat.c
Date: Sun, 06 Jul 2003 18:59:00 -0000 [thread overview]
Message-ID: <m34r1za3cd.fsf@whitebox.as.local> (raw)
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
reply other threads:[~2003-07-06 18:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m34r1za3cd.fsf@whitebox.as.local \
--to=schwab@suse.de \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox