diff options
author | Mark Kettenis <kettenis@gnu.org> | 2002-12-21 21:09:58 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2002-12-21 21:09:58 +0000 |
commit | 2213a65dbc17284cd192a9775d86b70c918a15b4 (patch) | |
tree | ea5f620e428df2b616770c62a3a85cf0afe28480 /gdb/x86-64-linux-tdep.c | |
parent | 05816f706ec4cb2e789828fa8edb8ea30593933b (diff) | |
download | gdb-2213a65dbc17284cd192a9775d86b70c918a15b4.zip gdb-2213a65dbc17284cd192a9775d86b70c918a15b4.tar.gz gdb-2213a65dbc17284cd192a9775d86b70c918a15b4.tar.bz2 |
* x86-64-tdep.h (x86_64_init_abi): New prototype.
* x86-64-tdep.c (i386_fp_regnum_p): Remove function.
(x86_64_init_abi): Make non-static. Set number of pseudo
registers to 0.
(x86_64_gdbarch_init): Remove function.
(_initialize_x86_64_tdep): Renove register_gdbarch_init call.
Remove code dealing with dissambly.
* x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
(_initialize_x86_64_linux_tdep): New function.
* config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
i386-tdep.o.
Diffstat (limited to 'gdb/x86-64-linux-tdep.c')
-rw-r--r-- | gdb/x86-64-linux-tdep.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gdb/x86-64-linux-tdep.c b/gdb/x86-64-linux-tdep.c index de31e13..e43bdbe 100644 --- a/gdb/x86-64-linux-tdep.c +++ b/gdb/x86-64-linux-tdep.c @@ -189,3 +189,20 @@ x86_64_init_frame_pc (int fromleaf, struct frame_info *fi) else return cfi_init_frame_pc (fromleaf, fi); } + + +static void +x86_64_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) +{ + x86_64_init_abi (info, gdbarch); +} + +/* Provide a prototype to silence -Wmissing-prototypes. */ +extern void _initialize_x86_64_linux_tdep (void); + +void +_initialize_x86_64_linux_tdep (void) +{ + gdbarch_register_osabi (bfd_arch_i386, bfd_mach_x86_64, GDB_OSABI_LINUX, + x86_64_linux_init_abi); +} |