summaryrefslogtreecommitdiff
path: root/gdb/x86-64-tdep.h
diff options
context:
space:
mode:
authorMichal Ludvig <mludvig@suse.cz>2002-03-27 17:19:37 +0000
committerMichal Ludvig <mludvig@suse.cz>2002-03-27 17:19:37 +0000
commit498fec3cdc92b7bb51900cd14c36821651f213aa (patch)
treef0616d9265db0d8a5b9900b914248adb15a7fbd3 /gdb/x86-64-tdep.h
parentde465422c22eea7a05d8d5c8fef89a26c1db21a1 (diff)
downloadgdb-498fec3cdc92b7bb51900cd14c36821651f213aa.tar.gz
* x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
* x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines. (x86_64_num_regs, x86_64_num_gregs): Added extern variables. * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS. (x86_64_linux_dr_get_status, supply_gregset), (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs. * x86-64-tdep.c (x86_64_register_raw_size_table): Delete. (x86_64_register_info_table): Add. (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add. (x86_64_register_raw_size, x86_64_register_virtual_type), (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new general x86_64_register_info_table. (i386_gdbarch_init): gdbarch_register_bytes is now set dynamicaly during initialization. * regformats/reg-x86-64.dat: Synced with changes to registers above. * gdbserver/linux-x86-64-low.c: Ditto.
Diffstat (limited to 'gdb/x86-64-tdep.h')
-rw-r--r--gdb/x86-64-tdep.h19
1 files changed, 2 insertions, 17 deletions
diff --git a/gdb/x86-64-tdep.h b/gdb/x86-64-tdep.h
index d04da8be333..d15b8e71e7f 100644
--- a/gdb/x86-64-tdep.h
+++ b/gdb/x86-64-tdep.h
@@ -24,24 +24,9 @@
#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)
-
-/* Number of general registers. */
-#define X86_64_NUM_GREGS (18)
+extern int x86_64_num_regs;
+extern int x86_64_num_gregs;
gdbarch_frame_saved_pc_ftype x86_64_linux_frame_saved_pc;
gdbarch_saved_pc_after_call_ftype x86_64_linux_saved_pc_after_call;