summaryrefslogtreecommitdiff
path: root/gdb/ia64-tdep.h
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2005-01-05 22:51:47 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2005-01-05 22:51:47 +0000
commitb33e8514836a6724b54d50f1cc42fea9ffc923b0 (patch)
treee31e62a73699274c5c6ba8805ed53fc3a7669c1a /gdb/ia64-tdep.h
parente54b12b7797ece3410070f0d634b8ba9117dc1e1 (diff)
downloadbinutils-gdb-b33e8514836a6724b54d50f1cc42fea9ffc923b0.tar.gz
* 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).
Diffstat (limited to 'gdb/ia64-tdep.h')
-rw-r--r--gdb/ia64-tdep.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/ia64-tdep.h b/gdb/ia64-tdep.h
index f917232cd45..e4afe3e86fb 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 */