From: Kevin Buettner <kevinb@cygnus.com>
To: gdb-patches@sources.redhat.com
Subject: [PATCH] i386-linux-nat.c: Use regcache_collect() in fill_gregset()
Date: Wed, 07 Nov 2001 09:59:00 -0000 [thread overview]
Message-ID: <1011118012136.ZM7100@ocotillo.lan> (raw)
I've just committed the following change...
* i386-linux-nat.c (fill_gregset): Use regcache_collect() instead
of accessing registers[] directly.
Index: i386-linux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/i386-linux-nat.c,v
retrieving revision 1.30
diff -u -p -r1.30 i386-linux-nat.c
--- i386-linux-nat.c 2001/11/17 23:53:16 1.30
+++ i386-linux-nat.c 2001/11/18 01:15:56
@@ -322,11 +322,10 @@ fill_gregset (elf_gregset_t *gregsetp, i
for (i = 0; i < NUM_GREGS; i++)
if ((regno == -1 || regno == i))
- *(regp + regmap[i]) = *(elf_greg_t *) ®isters[REGISTER_BYTE (i)];
+ regcache_collect (i, regp + regmap[i]);
if (regno == -1 || regno == I386_LINUX_ORIG_EAX_REGNUM)
- *(regp + regmap[ORIG_EAX]) =
- *(elf_greg_t *) ®isters[REGISTER_BYTE (I386_LINUX_ORIG_EAX_REGNUM)];
+ regcache_collect (I386_LINUX_ORIG_EAX_REGNUM, regp + regmap[ORIG_EAX]);
}
#ifdef HAVE_PTRACE_GETREGS
next reply other threads:[~2001-11-18 1:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-07 9:59 Kevin Buettner [this message]
2001-11-07 14:37 ` 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=1011118012136.ZM7100@ocotillo.lan \
--to=kevinb@cygnus.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