From b33e8514836a6724b54d50f1cc42fea9ffc923b0 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Wed, 5 Jan 2005 22:51:47 +0000 Subject: * ia64-tdep.c: Include "osabi.h". (native_find_global_pointer): Delete. (ia64_find_global_pointer): Renamed from generic_elf_find_global_pointer. (FIND_GLOBAL_POINTER): Delete. Change all users to call ia64_find_global_pointer instead. (ia64_gdbarch_init): Call gdbarch_init_osabi. Remove references to ia64_linux_sigcontext_register_address and ia64_linux_write_pc. Don't set tdep->find_global_pointer. (_initialize_ia64_tdep): Call gdbarch_register instead of deprecated register_gdbarch_init. (struct gdbarch_tdep): Remove find_global_pointer field and move to ... * ia64-tdep.h (struct gdbarch_tdep): ... here. (ia64_linux_sigcontext_register_address): Remove declaration. (ia64_linux_getunwind_table): Likewise. (ia64_linux_write_pc): Likewise. * ia64-linux-tdep.c: Include "osabi.h". (ia64_linux_sigcontext_register_address): Make static. (ia64_linux_write_pc): Likewise. (ia64_linux_init_abi): New. (_initialize_ia64_linux_tdep): New. * Makefile.in (ia64-tdep.o, ia64-linux-tdep.o): Depend on $(osabi_h). --- gdb/ia64-tdep.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'gdb/ia64-tdep.h') diff --git a/gdb/ia64-tdep.h b/gdb/ia64-tdep.h index f917232..e4afe3e 100644 --- a/gdb/ia64-tdep.h +++ b/gdb/ia64-tdep.h @@ -1,6 +1,6 @@ /* Target-dependent code for the ia64. - Copyright 2004 Free Software Foundation, Inc. + Copyright 2004, 2005 Free Software Foundation, Inc. This file is part of GDB. @@ -22,9 +22,11 @@ #ifndef IA64_TDEP_H #define IA64_TDEP_H -extern CORE_ADDR ia64_linux_sigcontext_register_address (CORE_ADDR, int); -extern unsigned long ia64_linux_getunwind_table (void *, size_t); +struct gdbarch_tdep +{ + CORE_ADDR (*sigcontext_register_address) (CORE_ADDR, int); +}; + extern void ia64_write_pc (CORE_ADDR, ptid_t); -extern void ia64_linux_write_pc (CORE_ADDR, ptid_t); #endif /* IA64_TDEP_H */ -- cgit v1.1