From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22703 invoked by alias); 5 Jun 2003 22:49:30 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 22655 invoked from network); 5 Jun 2003 22:49:30 -0000 Received: from unknown (HELO zenia.home) (12.223.225.216) by sources.redhat.com with SMTP; 5 Jun 2003 22:49:30 -0000 Received: by zenia.home (Postfix, from userid 5433) id 68A7D20FE6; Thu, 5 Jun 2003 17:49:50 -0500 (EST) To: gdb-patches@sources.redhat.com Subject: RFA: finish the job (gdbarching solib functions) From: Jim Blandy Date: Thu, 05 Jun 2003 22:49:00 -0000 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-06/txt/msg00221.txt.bz2 I missed another #definition of SKIP_TRAMPOLINE_CODE lower down in tm-linux.h. 2003-06-05 Jim Blandy Actually finish the job started by my change of 2003-05-29. * 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. Index: gdb/ppc-linux-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/ppc-linux-tdep.c,v retrieving revision 1.30 diff -c -r1.30 ppc-linux-tdep.c *** gdb/ppc-linux-tdep.c 2 Jun 2003 02:09:39 -0000 1.30 --- gdb/ppc-linux-tdep.c 5 Jun 2003 22:40:51 -0000 *************** *** 229,235 **** && insn_is_sigreturn (extract_unsigned_integer (buf, 4)))); } ! CORE_ADDR ppc_linux_skip_trampoline_code (CORE_ADDR pc) { char buf[4]; --- 229,235 ---- && insn_is_sigreturn (extract_unsigned_integer (buf, 4)))); } ! static CORE_ADDR ppc_linux_skip_trampoline_code (CORE_ADDR pc) { char buf[4]; *************** *** 749,755 **** /* Shared library handling. */ set_gdbarch_in_solib_call_trampoline (gdbarch, in_plt_section); ! set_gdbarch_skip_trampoline_code (gdbarch, find_solib_trampoline_target); } void --- 749,755 ---- /* Shared library handling. */ set_gdbarch_in_solib_call_trampoline (gdbarch, in_plt_section); ! set_gdbarch_skip_trampoline_code (gdbarch, ppc_linux_skip_trampoline_code); } void Index: gdb/config/powerpc/tm-linux.h =================================================================== RCS file: /cvs/src/src/gdb/config/powerpc/tm-linux.h,v retrieving revision 1.12 diff -c -r1.12 tm-linux.h *** gdb/config/powerpc/tm-linux.h 30 May 2003 03:44:05 -0000 1.12 --- gdb/config/powerpc/tm-linux.h 5 Jun 2003 22:40:51 -0000 *************** *** 48,57 **** 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) --- 48,53 ----