This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] Re: x86-64-tdep.h cleanup
Kevin Buettner wrote:
> (Yes, approved.)
Thanks, for now I commited this change since noone voted against it. I
will try to solve the other cleanup later.
Index: x86-64-tdep.h
===================================================================
RCS file: /cvs/src/src/gdb/x86-64-tdep.h,v
retrieving revision 1.1
diff -c -3 -p -r1.1 x86-64-tdep.h
*** x86-64-tdep.h 2001/09/21 12:19:15 1.1
--- x86-64-tdep.h 2002/03/07 13:26:10
***************
*** 24,41 ****
#define X86_64_TDEP_H
#include "i386-tdep.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
- };
/* Number of all registers */
#define X86_64_NUM_REGS (51)
--- 24,29 ----
Index: x86-64-linux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/x86-64-linux-nat.c,v
retrieving revision 1.5
diff -c -3 -p -r1.5 x86-64-linux-nat.c
*** x86-64-linux-nat.c 2002/02/24 22:14:33 1.5
--- x86-64-linux-nat.c 2002/03/07 13:26:10
***************
*** 33,39 ****
--- 33,51 ----
#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)
{
Michal Ludvig
--
* SuSE CR, s.r.o * mludvig@suse.cz
* +420 2 9654 5373 * http://www.suse.cz