From af380d6174d81b323d02d6b0acf02828d360b816 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sun, 31 Oct 2004 19:52:47 +0000 Subject: [PATCH] 2004-10-31 Andrew Cagney * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE isn't used by this architecture. * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto. * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto. * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto. * s390-tdep.c (s390_gdbarch_init): Ditto. * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto. * m68klinux-tdep.c (m68k_linux_init_abi): Ditto. * i386-tdep.c (i386_svr4_init_abi): Ditto. * i386-nto-tdep.c (i386nto_init_abi): Ditto. * arm-linux-tdep.c (arm_linux_init_abi): Ditto. * amd64-tdep.c (amd64_init_abi): Ditto. --- gdb/ChangeLog | 14 ++++++++++++++ gdb/amd64-tdep.c | 5 ----- gdb/arm-linux-tdep.c | 1 - gdb/i386-nto-tdep.c | 1 - gdb/i386-tdep.c | 1 - gdb/m68klinux-tdep.c | 1 - gdb/ppc-linux-tdep.c | 1 - gdb/s390-tdep.c | 1 - gdb/sparc-sol2-tdep.c | 1 - gdb/sparc64-sol2-tdep.c | 1 - gdb/sparc64nbsd-tdep.c | 1 - gdb/sparc64obsd-tdep.c | 1 - 12 files changed, 14 insertions(+), 15 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 789699b8000..f9dbe9c425a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,19 @@ 2004-10-31 Andrew Cagney + * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set + in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE + isn't used by this architecture. + * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto. + * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto. + * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto. + * s390-tdep.c (s390_gdbarch_init): Ditto. + * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto. + * m68klinux-tdep.c (m68k_linux_init_abi): Ditto. + * i386-tdep.c (i386_svr4_init_abi): Ditto. + * i386-nto-tdep.c (i386nto_init_abi): Ditto. + * arm-linux-tdep.c (arm_linux_init_abi): Ditto. + * amd64-tdep.c (amd64_init_abi): Ditto. + * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set in_solib_call_trampoline to its default value of generic_in_solib_call_trampoline. diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c index 613022be2a0..4b4bb5f4621 100644 --- a/gdb/amd64-tdep.c +++ b/gdb/amd64-tdep.c @@ -1169,11 +1169,6 @@ amd64_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) set_gdbarch_unwind_dummy_id (gdbarch, amd64_unwind_dummy_id); - /* FIXME: kettenis/20021026: This is ELF-specific. Fine for now, - since all supported AMD64 targets are ELF, but that might change - in the future. */ - set_gdbarch_in_solib_call_trampoline (gdbarch, in_plt_section); - frame_unwind_append_sniffer (gdbarch, amd64_sigtramp_frame_sniffer); frame_unwind_append_sniffer (gdbarch, amd64_frame_sniffer); frame_base_set_default (gdbarch, &amd64_frame_base); diff --git a/gdb/arm-linux-tdep.c b/gdb/arm-linux-tdep.c index 98dacca60c2..7fa71d4f96d 100644 --- a/gdb/arm-linux-tdep.c +++ b/gdb/arm-linux-tdep.c @@ -481,7 +481,6 @@ arm_linux_init_abi (struct gdbarch_info info, set_gdbarch_deprecated_push_arguments (gdbarch, arm_linux_push_arguments); /* Shared library handling. */ - set_gdbarch_in_solib_call_trampoline (gdbarch, in_plt_section); set_gdbarch_skip_trampoline_code (gdbarch, find_solib_trampoline_target); set_gdbarch_skip_solib_resolver (gdbarch, glibc_skip_solib_resolver); } diff --git a/gdb/i386-nto-tdep.c b/gdb/i386-nto-tdep.c index eed66a975d8..30f623803f1 100644 --- a/gdb/i386-nto-tdep.c +++ b/gdb/i386-nto-tdep.c @@ -282,7 +282,6 @@ i386nto_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) set_gdbarch_decr_pc_after_break (gdbarch, 0); /* NTO has shared libraries. */ - set_gdbarch_in_solib_call_trampoline (gdbarch, in_plt_section); set_gdbarch_skip_trampoline_code (gdbarch, find_solib_trampoline_target); tdep->sigtramp_p = i386nto_sigtramp_p; diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index e001c3e10e1..0d066a9d315 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -1962,7 +1962,6 @@ i386_svr4_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) i386_elf_init_abi (info, gdbarch); /* System V Release 4 has shared libraries. */ - set_gdbarch_in_solib_call_trampoline (gdbarch, in_plt_section); set_gdbarch_skip_trampoline_code (gdbarch, find_solib_trampoline_target); tdep->sigtramp_p = i386_svr4_sigtramp_p; diff --git a/gdb/m68klinux-tdep.c b/gdb/m68klinux-tdep.c index e385dbad627..8221a926c6d 100644 --- a/gdb/m68klinux-tdep.c +++ b/gdb/m68klinux-tdep.c @@ -295,7 +295,6 @@ m68k_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) frame_unwind_append_sniffer (gdbarch, m68k_linux_sigtramp_frame_sniffer); /* Shared library handling. */ - set_gdbarch_in_solib_call_trampoline (gdbarch, in_plt_section); set_gdbarch_skip_trampoline_code (gdbarch, find_solib_trampoline_target); } diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c index 206b78aca02..96753b6849c 100644 --- a/gdb/ppc-linux-tdep.c +++ b/gdb/ppc-linux-tdep.c @@ -1086,7 +1086,6 @@ ppc_linux_init_abi (struct gdbarch_info info, ppc_linux_memory_remove_breakpoint); /* Shared library handling. */ - set_gdbarch_in_solib_call_trampoline (gdbarch, in_plt_section); set_gdbarch_skip_trampoline_code (gdbarch, ppc_linux_skip_trampoline_code); set_solib_svr4_fetch_link_map_offsets diff --git a/gdb/s390-tdep.c b/gdb/s390-tdep.c index 8245fa4b0c8..19dff191271 100644 --- a/gdb/s390-tdep.c +++ b/gdb/s390-tdep.c @@ -2953,7 +2953,6 @@ s390_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_return_value (gdbarch, s390_return_value); /* Frame handling. */ - set_gdbarch_in_solib_call_trampoline (gdbarch, in_plt_section); dwarf2_frame_set_init_reg (gdbarch, s390_dwarf2_frame_init_reg); frame_unwind_append_sniffer (gdbarch, dwarf2_frame_sniffer); frame_base_append_sniffer (gdbarch, dwarf2_frame_base_sniffer); diff --git a/gdb/sparc-sol2-tdep.c b/gdb/sparc-sol2-tdep.c index 84a23e2c554..13a4b544320 100644 --- a/gdb/sparc-sol2-tdep.c +++ b/gdb/sparc-sol2-tdep.c @@ -176,7 +176,6 @@ sparc32_sol2_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); /* Solaris has SVR4-style shared libraries... */ - set_gdbarch_in_solib_call_trampoline (gdbarch, in_plt_section); set_gdbarch_skip_trampoline_code (gdbarch, find_solib_trampoline_target); set_solib_svr4_fetch_link_map_offsets (gdbarch, svr4_ilp32_fetch_link_map_offsets); diff --git a/gdb/sparc64-sol2-tdep.c b/gdb/sparc64-sol2-tdep.c index d22232a0cdd..12fa023050e 100644 --- a/gdb/sparc64-sol2-tdep.c +++ b/gdb/sparc64-sol2-tdep.c @@ -159,7 +159,6 @@ sparc64_sol2_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) sparc64_init_abi (info, gdbarch); /* Solaris has SVR4-style shared libraries... */ - set_gdbarch_in_solib_call_trampoline (gdbarch, in_plt_section); set_gdbarch_skip_trampoline_code (gdbarch, find_solib_trampoline_target); set_solib_svr4_fetch_link_map_offsets (gdbarch, svr4_lp64_fetch_link_map_offsets); diff --git a/gdb/sparc64nbsd-tdep.c b/gdb/sparc64nbsd-tdep.c index aa665da8c5d..e02ee3ae6d9 100644 --- a/gdb/sparc64nbsd-tdep.c +++ b/gdb/sparc64nbsd-tdep.c @@ -238,7 +238,6 @@ sparc64nbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) sparc64_init_abi (info, gdbarch); /* NetBSD/sparc64 has SVR4-style shared libraries... */ - set_gdbarch_in_solib_call_trampoline (gdbarch, in_plt_section); set_gdbarch_skip_trampoline_code (gdbarch, find_solib_trampoline_target); set_solib_svr4_fetch_link_map_offsets (gdbarch, svr4_lp64_fetch_link_map_offsets); diff --git a/gdb/sparc64obsd-tdep.c b/gdb/sparc64obsd-tdep.c index fdd5e8184ce..18e0416c94b 100644 --- a/gdb/sparc64obsd-tdep.c +++ b/gdb/sparc64obsd-tdep.c @@ -202,7 +202,6 @@ sparc64obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) sparc64_init_abi (info, gdbarch); /* OpenBSD/sparc64 has SVR4-style shared libraries... */ - set_gdbarch_in_solib_call_trampoline (gdbarch, in_plt_section); set_gdbarch_skip_trampoline_code (gdbarch, find_solib_trampoline_target); set_solib_svr4_fetch_link_map_offsets (gdbarch, svr4_lp64_fetch_link_map_offsets); -- 2.30.2