aboutsummaryrefslogtreecommitdiff
path: root/gdb/hppabsd-tdep.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2006-01-20 23:37:07 +0000
committerMark Kettenis <kettenis@gnu.org>2006-01-20 23:37:07 +0000
commit34f5501828c0afb929318a68822c1244a520ffcc (patch)
treeed6ac4e737167f1c945bce9c736a38eff8418b7f /gdb/hppabsd-tdep.c
parent80df1bbe0523fadcaa8f3e181296d42e54837690 (diff)
downloadgdb-34f5501828c0afb929318a68822c1244a520ffcc.zip
gdb-34f5501828c0afb929318a68822c1244a520ffcc.tar.gz
gdb-34f5501828c0afb929318a68822c1244a520ffcc.tar.bz2
* hppa-tdep.h (hppa_in_solib_call_trampoline)
(hppa_skip_trampoline_code): New prototypes. * hppa-tdep.c (struct insn_pattern): New. (hppa_long_branch_stub, hppa_long_branch_pic_stub) (hppa_import_stub, hppa_import_pic_stub, hppa_plt_stub): Moved here from hppa-linux-tdep.c (HPPA_MAX_INSN_PATTERN_LEN): New define. (hppa_match_insns, hppa_match_insns_relaxed, hppa_in_dyncall) (hppa_in_solib_call_trampoline, hppa_skip_trampoline_code): New functions based on functions removed from hppa-linux-tdep.c. * hppa-linux-tdep.c (hppa_long_branch_stub) (hppa_long_branch_pic_stub, hppa_import_stub) (hppa_import_pic_stub, hppa_plt_stub): Moved to hppa-tdep.c. (insns_match_pattern_relaxed, hppa_linux_in_dyncall) (hppa_linux_in_solib_call_trampoline) (hppa_linux_skip_trampoline_code): Removed. (hppa_linux_init_abi): Set TDEP->in_solib_call_tranpoline to hppa_in_solib_call_trampoline and skip_trampoline_code to hppa_skip_trampoline_code. * hppabsd-tdep.c (hppabsd_init_abi): Set TDEP->in_solib_call_trampoline and skip_trampoline_code.
Diffstat (limited to 'gdb/hppabsd-tdep.c')
-rw-r--r--gdb/hppabsd-tdep.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/hppabsd-tdep.c b/gdb/hppabsd-tdep.c
index 7fb3c27..1c77bd9 100644
--- a/gdb/hppabsd-tdep.c
+++ b/gdb/hppabsd-tdep.c
@@ -178,8 +178,10 @@ hppabsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
(gdbarch, hppabsd_regset_from_core_section);
/* OpenBSD and NetBSD use ELF. */
- tdep->find_global_pointer = hppabsd_find_global_pointer;
tdep->is_elf = 1;
+ tdep->find_global_pointer = hppabsd_find_global_pointer;
+ tdep->in_solib_call_trampoline = hppa_in_solib_call_trampoline;
+ set_gdbarch_skip_trampoline_code (gdbarch, hppa_skip_trampoline_code);
/* OpenBSD and NetBSD use SVR4-style shared libraries. */
set_solib_svr4_fetch_link_map_offsets