Actually finish the job started by my change of 2003-05-29.
authorJim Blandy <jimb@codesourcery.com>
Thu, 12 Jun 2003 23:58:07 +0000 (23:58 +0000)
committerJim Blandy <jimb@codesourcery.com>
Thu, 12 Jun 2003 23:58:07 +0000 (23:58 +0000)
* config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
other #definition of this.
(ppc_linux_skip_trampoline_code): Remove declaration.
* ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
static.
(ppc_linux_init_abi): Register it as the skip_trampoline_code
method for GDBARCH.

gdb/config/powerpc/tm-linux.h
gdb/ppc-linux-tdep.c

index eba57c0f41132f774cef12ed5fe714861a5cf437..34d95cadca47aee78b231806a8638734afb9efed 100644 (file)
@@ -48,10 +48,6 @@ extern int at_subroutine_call_instruction_target();
    in symfile.c) */
 #undef IBM6000_TARGET
 
-extern CORE_ADDR ppc_linux_skip_trampoline_code (CORE_ADDR pc);
-#undef SKIP_TRAMPOLINE_CODE
-#define        SKIP_TRAMPOLINE_CODE(pc) ppc_linux_skip_trampoline_code (pc)
-
 extern int ppc_linux_in_sigtramp (CORE_ADDR pc, char *func_name);
 #undef IN_SIGTRAMP
 #define IN_SIGTRAMP(pc,func_name) ppc_linux_in_sigtramp (pc,func_name)
index ef1d9f0b344519b1b2f636a73b6a1900d494bccd..279c17c465c920d2155de58fc300b790ed19c386 100644 (file)
@@ -229,7 +229,7 @@ ppc_linux_at_sigtramp_return_path (CORE_ADDR pc)
            && insn_is_sigreturn (extract_unsigned_integer (buf, 4))));
 }
 
-CORE_ADDR
+static CORE_ADDR
 ppc_linux_skip_trampoline_code (CORE_ADDR pc)
 {
   char buf[4];
@@ -749,7 +749,7 @@ ppc_linux_init_abi (struct gdbarch_info info,
 
   /* 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_trampoline_code (gdbarch, ppc_linux_skip_trampoline_code);
 }
 
 void