From: Kevin Buettner Date: Sat, 17 Nov 2001 23:53:16 +0000 (+0000) Subject: * i386-linux-nat.c (fill_gregset): Don't invoke read_register_gen() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7dd945fa276cbeea36436fddc11453cec0300ef3;p=binutils-gdb.git * i386-linux-nat.c (fill_gregset): Don't invoke read_register_gen() when fetching ORIG_EAX. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ac0e7aaa6c2..1bfdf9cf276 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-11-17 Kevin Buettner + + * i386-linux-nat.c (fill_gregset): Don't invoke read_register_gen() + when fetching ORIG_EAX. + 2001-11-17 Daniel Jacobowitz * arm-linux-nat.c: Don't include . diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c index a9a1fc6ae9d..fb32df0db3e 100644 --- a/gdb/i386-linux-nat.c +++ b/gdb/i386-linux-nat.c @@ -325,7 +325,8 @@ fill_gregset (elf_gregset_t *gregsetp, int regno) *(regp + regmap[i]) = *(elf_greg_t *) ®isters[REGISTER_BYTE (i)]; if (regno == -1 || regno == I386_LINUX_ORIG_EAX_REGNUM) - 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)]; } #ifdef HAVE_PTRACE_GETREGS