* i386-linux-nat.c (fill_gregset): Don't invoke read_register_gen()
authorKevin Buettner <kevinb@redhat.com>
Sat, 17 Nov 2001 23:53:16 +0000 (23:53 +0000)
committerKevin Buettner <kevinb@redhat.com>
Sat, 17 Nov 2001 23:53:16 +0000 (23:53 +0000)
when fetching ORIG_EAX.

gdb/ChangeLog
gdb/i386-linux-nat.c

index ac0e7aaa6c28fdd3092f508d7b7cf6a7ca1e5773..1bfdf9cf27680217dd44b92af544e1410d13c4e3 100644 (file)
@@ -1,3 +1,8 @@
+2001-11-17  Kevin Buettner  <kevinb@redhat.com>
+
+       * i386-linux-nat.c (fill_gregset): Don't invoke read_register_gen()
+       when fetching ORIG_EAX.
+
 2001-11-17  Daniel Jacobowitz  <drow@mvista.com>
 
        * arm-linux-nat.c: Don't include <asm/ptrace.h>.
index a9a1fc6ae9da22217f7d3c26c0695704df9cc9ee..fb32df0db3ecaf971375ddf0c2723a41ea4906e2 100644 (file)
@@ -325,7 +325,8 @@ fill_gregset (elf_gregset_t *gregsetp, int regno)
       *(regp + regmap[i]) = *(elf_greg_t *) &registers[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 *) &registers[REGISTER_BYTE (I386_LINUX_ORIG_EAX_REGNUM)];
 }
 
 #ifdef HAVE_PTRACE_GETREGS