This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RFA: finish the job (gdbarching solib functions)


I missed another #definition of SKIP_TRAMPOLINE_CODE lower down in
tm-linux.h.

2003-06-05  Jim Blandy  <jimb@redhat.com>

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]