This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH RFA]: Fix i386-linux-nat.c fill_gregset()


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 *) &registers[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]