From: Jim Blandy <jimb@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: PATCH: fix off-by-one error in ppc_collect_gregset
Date: Fri, 07 May 2004 22:53:00 -0000 [thread overview]
Message-ID: <vt2ekpvyhsd.fsf@zenia.home> (raw)
Committed as obvious.
This also ought to be using tdep->ppc_gp0_regnum, but that's a
separate patch, on its way.
2004-05-07 Jim Blandy <jimb@redhat.com>
* rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
loop collecting gprs.
*** gdb/rs6000-tdep.c 2004-05-07 15:54:04.000000000 -0500
--- gdb/rs6000-tdep.c 2004-05-07 17:40:48.000000000 -0500
*************** ppc_collect_gregset (const struct regset
*** 259,265 ****
int i;
offset = offsets->r0_offset;
! for (i = 0; i <= 32; i++, offset += 4)
{
if (regnum == -1 || regnum == i)
ppc_collect_reg (regcache, regnum, gregs, offset);
--- 259,265 ----
int i;
offset = offsets->r0_offset;
! for (i = 0; i < 32; i++, offset += 4)
{
if (regnum == -1 || regnum == i)
ppc_collect_reg (regcache, regnum, gregs, offset);
next reply other threads:[~2004-05-07 22:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-07 22:53 Jim Blandy [this message]
2004-05-08 0:42 ` Kevin Buettner
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=vt2ekpvyhsd.fsf@zenia.home \
--to=jimb@redhat.com \
--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