From: Michal Ludvig Date: Sun, 10 Mar 2002 18:16:26 +0000 (+0000) Subject: * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c X-Git-Tag: binutils-2_13-branchpoint~1777 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=33a0a2ac447b41041f76f08147f7783092a9b9c0;p=thirdparty%2Fbinutils-gdb.git * 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 --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f398fc8d21d..14333ced900 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2002-03-10 Michal Ludvig + + * 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 + 2002-03-10 Daniel Jacobowitz Don Howard 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 #include #include +#include + +/* 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) diff --git a/gdb/x86-64-tdep.h b/gdb/x86-64-tdep.h index d04da8be333..83828cf3c0b 100644 --- a/gdb/x86-64-tdep.h +++ b/gdb/x86-64-tdep.h @@ -24,18 +24,6 @@ #define X86_64_TDEP_H #include "i386-tdep.h" -#include - -/* 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 -}; /* Number of all registers */ #define X86_64_NUM_REGS (51)