]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
amd64: simplify addition of new general registers.
authorWalfred Tedeschi <walfred.tedeschi@intel.com>
Fri, 27 Jan 2017 14:19:13 +0000 (15:19 +0100)
committerWalfred Tedeschi <walfred.tedeschi@intel.com>
Fri, 27 Jan 2017 14:20:13 +0000 (15:20 +0100)
The purpose of this patch is only simplify the addition of new registers.
ORIG_RAX is kept as last register and any addition is done right before it.

2017-01-27  Walfred Tedeschi  <walfred.tedeschi@intel.com>

* amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
Set to AMD64_NUM_REGS.

gdb/ChangeLog
gdb/amd64-linux-tdep.h

index 401372c763194f53d9bcebfbe71123d95c5350b0..d4af52a02c2ded76268b13d95115b10e8e804868 100644 (file)
@@ -1,3 +1,8 @@
+2017-01-27  Walfred Tedeschi  <walfred.tedeschi@intel.com>
+
+       * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
+       Set to AMD64_NUM_REGS.
+
 2017-01-27  Walfred Tedeschi  <walfred.tedeschi@intel.com>
 
        * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
index 5d032a682371ad13ac900c1f8833c2ebd806bf4a..7c53fda0ccf1a4c3b650458e285e17899e417b8a 100644 (file)
@@ -26,7 +26,7 @@
 /* Register number for the "orig_rax" register.  If this register
    contains a value >= 0 it is interpreted as the system call number
    that the kernel is supposed to restart.  */
-#define AMD64_LINUX_ORIG_RAX_REGNUM (AMD64_ZMM31H_REGNUM + 1)
+#define AMD64_LINUX_ORIG_RAX_REGNUM AMD64_NUM_REGS
 
 /* Total number of registers for GNU/Linux.  */
 #define AMD64_LINUX_NUM_REGS (AMD64_LINUX_ORIG_RAX_REGNUM + 1)