aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-linux-tdep.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2003-08-29 16:28:39 +0000
committerMark Kettenis <kettenis@gnu.org>2003-08-29 16:28:39 +0000
commit60fac5b81a94dedf1997344af7a998e9ea611e55 (patch)
treeb8d84497225be51a56fb0f7fc649546d28ab3e4a /gdb/i386-linux-tdep.h
parent546143b61a02462d8536c067c2137ed28cc7728a (diff)
downloadfsf-binutils-gdb-60fac5b81a94dedf1997344af7a998e9ea611e55.zip
fsf-binutils-gdb-60fac5b81a94dedf1997344af7a998e9ea611e55.tar.gz
fsf-binutils-gdb-60fac5b81a94dedf1997344af7a998e9ea611e55.tar.bz2
* i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
* x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h". Change "register array" to "register cache" in comments. (x86_64_linux_gregset64_reg_offset): New variable. (GETREGS_SUPPLIES): Remove macro. (supply_gregset): Call amd64_supply_native_gregset instead of x86_64_linux_supply_gregset. (fill_gregset): Rename `regno' to `regnum'. Call amd64_collect_native_gregset instead of x86_64_linux_fill_gregset. (store_regs): Rename `regno' to `regnum'. (store_fpregs): Rename `regno' to `regnum'. (fetch_inferior_registers): Rename `regno' to `regnum'. Use amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES. Reorganize function a bit. (store_inferior_registers): Rename `regno' to `regnum'. Use amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES. Reorganize function a bit. (_initialize_x86_64_linux_nat): New function. * config/i386/x86-64linux.mh.
Diffstat (limited to 'gdb/i386-linux-tdep.h')
-rw-r--r--gdb/i386-linux-tdep.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/i386-linux-tdep.h b/gdb/i386-linux-tdep.h
index 95b168a..089268a 100644
--- a/gdb/i386-linux-tdep.h
+++ b/gdb/i386-linux-tdep.h
@@ -1,6 +1,6 @@
/* Target-dependent code for GNU/Linux x86.
- Copyright 2002 Free Software Foundation, Inc.
+ Copyright 2002, 2003 Free Software Foundation, Inc.
This file is part of GDB.
@@ -33,4 +33,7 @@
system call number that the kernel is supposed to restart. */
#define I386_LINUX_ORIG_EAX_REGNUM I386_SSE_NUM_REGS
+/* Total number of registers for GNU/Linux. */
+#define I386_LINUX_NUM_REGS (I386_LINUX_ORIG_EAX_REGNUM + 1)
+
#endif /* i386-linux-tdep.h */