From: Mark Kettenis Date: Thu, 8 Nov 2001 00:03:52 +0000 (+0000) Subject: * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Define in X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8cf03c4c872abfc39d15105c888fe62ed71329dc;p=binutils-gdb.git * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0cd341ddafd..9ad8d3c0145 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2001-11-08 Mark Kettenis + + * 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 * gdbarch.sh (USE_STRUCT_CONVENTION): Default to diff --git a/gdb/config/i386/tm-linux.h b/gdb/config/i386/tm-linux.h index 25d978235a4..820ac8b5564 100644 --- a/gdb/config/i386/tm-linux.h +++ b/gdb/config/i386/tm-linux.h @@ -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. */