diff options
author | Mark Kettenis <kettenis@gnu.org> | 2003-07-09 22:10:58 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2003-07-09 22:10:58 +0000 |
commit | 402ecd561836840d7c12db85d31d199700de8219 (patch) | |
tree | 52cdf34b44fdb7bffa01db4d28ea45fa8509e1fc /gdb | |
parent | c481dac7370f894b353d64c3dd93a5d05643d097 (diff) | |
download | gdb-402ecd561836840d7c12db85d31d199700de8219.zip gdb-402ecd561836840d7c12db85d31d199700de8219.tar.gz gdb-402ecd561836840d7c12db85d31d199700de8219.tar.bz2 |
* x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
* x86-64-tdep.c: ... from here.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/x86-64-tdep.c | 13 | ||||
-rw-r--r-- | gdb/x86-64-tdep.h | 13 |
3 files changed, 22 insertions, 12 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3ad82ca..dba180c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2003-07-09 Mark Kettenis <kettenis@gnu.org> + + * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, + X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, + X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, + X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ... + * x86-64-tdep.c: ... from here. + 2003-07-09 Andreas Schwab <schwab@suse.de> * m68k-tdep.h (enum struct_return): Define. diff --git a/gdb/x86-64-tdep.c b/gdb/x86-64-tdep.c index f4ceee86..544f29f 100644 --- a/gdb/x86-64-tdep.c +++ b/gdb/x86-64-tdep.c @@ -39,18 +39,7 @@ #include "x86-64-tdep.h" #include "i387-tdep.h" -/* Register numbers of various important registers. */ - -#define X86_64_RAX_REGNUM 0 /* %rax */ -#define X86_64_RDX_REGNUM 3 /* %rdx */ -#define X86_64_RDI_REGNUM 5 /* %rdi */ -#define X86_64_RBP_REGNUM 6 /* %rbp */ -#define X86_64_RSP_REGNUM 7 /* %rsp */ -#define X86_64_RIP_REGNUM 16 /* %rip */ -#define X86_64_EFLAGS_REGNUM 17 /* %eflags */ -#define X86_64_ST0_REGNUM 22 /* %st0 */ -#define X86_64_XMM0_REGNUM 38 /* %xmm0 */ -#define X86_64_XMM1_REGNUM 39 /* %xmm1 */ +/* Register information. */ struct x86_64_register_info { diff --git a/gdb/x86-64-tdep.h b/gdb/x86-64-tdep.h index 70ceffb..7ad6990 100644 --- a/gdb/x86-64-tdep.h +++ b/gdb/x86-64-tdep.h @@ -30,6 +30,19 @@ struct frame_info; #include "i386-tdep.h" +/* Register numbers of various important registers. */ + +#define X86_64_RAX_REGNUM 0 /* %rax */ +#define X86_64_RDX_REGNUM 3 /* %rdx */ +#define X86_64_RDI_REGNUM 5 /* %rdi */ +#define X86_64_RBP_REGNUM 6 /* %rbp */ +#define X86_64_RSP_REGNUM 7 /* %rsp */ +#define X86_64_RIP_REGNUM 16 /* %rip */ +#define X86_64_EFLAGS_REGNUM 17 /* %eflags */ +#define X86_64_ST0_REGNUM 22 /* %st0 */ +#define X86_64_XMM0_REGNUM 38 /* %xmm0 */ +#define X86_64_XMM1_REGNUM 39 /* %xmm1 */ + /* Number of general purpose registers. */ #define X86_64_NUM_GREGS 22 |