diff options
Diffstat (limited to 'gdb/x86-64-tdep.h')
-rw-r--r-- | gdb/x86-64-tdep.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gdb/x86-64-tdep.h b/gdb/x86-64-tdep.h index 70ceffb..608219c 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 @@ -47,5 +60,11 @@ void x86_64_supply_fxsave (char *fxsave); reserved bits in *FXSAVE. */ void x86_64_fill_fxsave (char *fxsave, int regnum); + + +/* Variables exported from amd64fbsd-tdep.c. */ +extern CORE_ADDR amd64fbsd_sigtramp_start; +extern CORE_ADDR amd64fbsd_sigtramp_end; +extern int amd64fbsd_sc_reg_offset[]; #endif /* x86-64-tdep.h */ |