This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH RFA]: Fix i386-linux-nat.c fill_gregset()
- From: Kevin Buettner <kevinb at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Sat, 17 Nov 2001 17:06:52 -0700
- Subject: Re: [PATCH RFA]: Fix i386-linux-nat.c fill_gregset()
- References: <1011117101740.ZM5510@ocotillo.lan>
On Nov 17, 3:17am, Kevin Buettner wrote:
> * i386-linux-nat.c (fill_gregset): Don't invoke read_register_gen()
> when fetching ORIG_EAX.
[...]
> - read_register_gen (I386_LINUX_ORIG_EAX_REGNUM, (char *) (regp + ORIG_EAX));
> + *(regp + regmap[ORIG_EAX]) =
> + *(elf_greg_t *) ®isters[REGISTER_BYTE (I386_LINUX_ORIG_EAX_REGNUM)];
Committed. (Thanks to Mark K. for the quick approval.)
I'm going to convert fill_gregset() to use regcache_collect() as a
separate step. I'm testing it now and will commit it as "obvious"
assuming my testing goes okay...
Kevin