2004-10-31  Andrew Cagney  <cagney@gnu.org>

	* 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.

Index: amd64-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/amd64-tdep.c,v
retrieving revision 1.16
diff -p -u -r1.16 amd64-tdep.c
--- amd64-tdep.c	29 Oct 2004 14:00:55 -0000	1.16
+++ amd64-tdep.c	31 Oct 2004 19:50:16 -0000
@@ -1169,11 +1169,6 @@ amd64_init_abi (struct gdbarch_info info
 
   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);
Index: arm-linux-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/arm-linux-tdep.c,v
retrieving revision 1.41
diff -p -u -r1.41 arm-linux-tdep.c
--- arm-linux-tdep.c	8 May 2004 21:27:02 -0000	1.41
+++ arm-linux-tdep.c	31 Oct 2004 19:50:16 -0000
@@ -481,7 +481,6 @@ arm_linux_init_abi (struct gdbarch_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);
 }
Index: i386-nto-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i386-nto-tdep.c,v
retrieving revision 1.14
diff -p -u -r1.14 i386-nto-tdep.c
--- i386-nto-tdep.c	8 Sep 2004 14:46:09 -0000	1.14
+++ i386-nto-tdep.c	31 Oct 2004 19:50:17 -0000
@@ -282,7 +282,6 @@ i386nto_init_abi (struct gdbarch_info in
   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;
Index: i386-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i386-tdep.c,v
retrieving revision 1.202
diff -p -u -r1.202 i386-tdep.c
--- i386-tdep.c	29 Oct 2004 14:00:55 -0000	1.202
+++ i386-tdep.c	31 Oct 2004 19:50:17 -0000
@@ -1962,7 +1962,6 @@ i386_svr4_init_abi (struct gdbarch_info 
   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;
Index: m68klinux-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/m68klinux-tdep.c,v
retrieving revision 1.13
diff -p -u -r1.13 m68klinux-tdep.c
--- m68klinux-tdep.c	20 Jul 2004 19:45:06 -0000	1.13
+++ m68klinux-tdep.c	31 Oct 2004 19:50:17 -0000
@@ -295,7 +295,6 @@ m68k_linux_init_abi (struct gdbarch_info
   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);
 }
 
Index: ppc-linux-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/ppc-linux-tdep.c,v
retrieving revision 1.66
diff -p -u -r1.66 ppc-linux-tdep.c
--- ppc-linux-tdep.c	31 Jul 2004 21:53:17 -0000	1.66
+++ ppc-linux-tdep.c	31 Oct 2004 19:50:17 -0000
@@ -1086,7 +1086,6 @@ ppc_linux_init_abi (struct gdbarch_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
Index: s390-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/s390-tdep.c,v
retrieving revision 1.136
diff -p -u -r1.136 s390-tdep.c
--- s390-tdep.c	23 Oct 2004 16:31:23 -0000	1.136
+++ s390-tdep.c	31 Oct 2004 19:50:18 -0000
@@ -2953,7 +2953,6 @@ s390_gdbarch_init (struct gdbarch_info i
   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);
Index: sparc-sol2-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sparc-sol2-tdep.c,v
retrieving revision 1.6
diff -p -u -r1.6 sparc-sol2-tdep.c
--- sparc-sol2-tdep.c	31 Jul 2004 21:53:17 -0000	1.6
+++ sparc-sol2-tdep.c	31 Oct 2004 19:50:18 -0000
@@ -176,7 +176,6 @@ sparc32_sol2_init_abi (struct gdbarch_in
   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);
Index: sparc64-sol2-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sparc64-sol2-tdep.c,v
retrieving revision 1.6
diff -p -u -r1.6 sparc64-sol2-tdep.c
--- sparc64-sol2-tdep.c	31 Jul 2004 21:53:17 -0000	1.6
+++ sparc64-sol2-tdep.c	31 Oct 2004 19:50:18 -0000
@@ -159,7 +159,6 @@ sparc64_sol2_init_abi (struct gdbarch_in
   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);
Index: sparc64nbsd-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sparc64nbsd-tdep.c,v
retrieving revision 1.12
diff -p -u -r1.12 sparc64nbsd-tdep.c
--- sparc64nbsd-tdep.c	19 Sep 2004 17:21:29 -0000	1.12
+++ sparc64nbsd-tdep.c	31 Oct 2004 19:50:18 -0000
@@ -238,7 +238,6 @@ sparc64nbsd_init_abi (struct gdbarch_inf
   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);
Index: sparc64obsd-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sparc64obsd-tdep.c,v
retrieving revision 1.11
diff -p -u -r1.11 sparc64obsd-tdep.c
--- sparc64obsd-tdep.c	19 Sep 2004 17:21:29 -0000	1.11
+++ sparc64obsd-tdep.c	31 Oct 2004 19:50:18 -0000
@@ -202,7 +202,6 @@ sparc64obsd_init_abi (struct gdbarch_inf
   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);
