From 7dd945fa276cbeea36436fddc11453cec0300ef3 Mon Sep 17 00:00:00 2001 From: Kevin Buettner Date: Sat, 17 Nov 2001 23:53:16 +0000 Subject: [PATCH] * i386-linux-nat.c (fill_gregset): Don't invoke read_register_gen() when fetching ORIG_EAX. --- gdb/ChangeLog | 5 +++++ gdb/i386-linux-nat.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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 -- 2.30.2