* config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Define in
authorMark Kettenis <kettenis@gnu.org>
Thu, 8 Nov 2001 00:03:52 +0000 (00:03 +0000)
committerMark Kettenis <kettenis@gnu.org>
Thu, 8 Nov 2001 00:03:52 +0000 (00:03 +0000)
terms of NUM_GREGS, NUM_FREGS and NUM_SSE_REGS instead of
hardcoding the register number.

gdb/ChangeLog
gdb/config/i386/tm-linux.h

index 0cd341ddafd5da654ac344c55a343c07538896f3..9ad8d3c0145093ff600eeae1c2cd0093957fa307 100644 (file)
@@ -1,3 +1,9 @@
+2001-11-08  Mark Kettenis  <kettenis@gnu.org>
+
+       * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Define in
+       terms of NUM_GREGS, NUM_FREGS and NUM_SSE_REGS instead of
+       hardcoding the register number.
+
 2001-11-07  Andrew Cagney  <ac131313@redhat.com>
 
        * gdbarch.sh (USE_STRUCT_CONVENTION): Default to
index 25d978235a40e94cdacc5e9a3e40c04d4f1df74f..820ac8b5564bbc27fc8cd12294ee063ee520ede0 100644 (file)
@@ -34,7 +34,7 @@
 /* Register number for the "orig_eax" pseudo-register.  If this
    pseudo-register contains a value >= 0 it is interpreted as the
    system call number that the kernel is supposed to restart.  */
-#define I386_LINUX_ORIG_EAX_REGNUM 41
+#define I386_LINUX_ORIG_EAX_REGNUM (NUM_GREGS + NUM_FREGS + NUM_SSE_REGS)
 
 /* Adjust a few macros to deal with this extra register.  */
 
This page took 0.026565 seconds and 4 git commands to generate.