summaryrefslogtreecommitdiff
path: root/gdb/x86-64-linux-nat.c
diff options
context:
space:
mode:
authorMichal Ludvig <mludvig@suse.cz>2002-03-10 18:16:26 +0000
committerMichal Ludvig <mludvig@suse.cz>2002-03-10 18:16:26 +0000
commit287d0ed696aef8790d0306a37808ab9f63ffce51 (patch)
tree46e8e3b80e7486e9b919053a45c9c4c8636141cb /gdb/x86-64-linux-nat.c
parent0c41e81e1d7dd61dde8f2024b78c91c968855b48 (diff)
downloadgdb-287d0ed696aef8790d0306a37808ab9f63ffce51.tar.gz
* x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
* x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here from x86-64-tdep.h
Diffstat (limited to 'gdb/x86-64-linux-nat.c')
-rw-r--r--gdb/x86-64-linux-nat.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/x86-64-linux-nat.c b/gdb/x86-64-linux-nat.c
index 3fb24dd5ce5..aafd2bed33e 100644
--- a/gdb/x86-64-linux-nat.c
+++ b/gdb/x86-64-linux-nat.c
@@ -33,6 +33,18 @@
#include <sys/debugreg.h>
#include <sys/syscall.h>
#include <sys/procfs.h>
+#include <sys/reg.h>
+
+/* Mapping between the general-purpose registers in `struct user'
+ format and GDB's register array layout. */
+
+static int x86_64_regmap[] = {
+ RAX, RDX, RCX, RBX,
+ RSI, RDI, RBP, RSP,
+ R8, R9, R10, R11,
+ R12, R13, R14, R15,
+ RIP, EFLAGS
+};
static unsigned long
x86_64_linux_dr_get (int regnum)