This is the mail archive of the gdb-patches@sourceware.org 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] amd64-linux-tdep: use SVR4 method for skip_trampoline_code


Hi Folks,

This small change is required for reverse-step/next on amd64 linux,
and causes no regressions in the testsuite.

OK to check in?
Michael

2009-08-16  Michael Snyder  <msnyder@vmware.com>

	* amd64-linux-tdep.c (amd64_linux_init_abi): Set gdbarch to use
	SVR4 method for skip_trampoline_code.

Index: amd64-linux-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/amd64-linux-tdep.c,v
retrieving revision 1.26
diff -u -p -r1.26 amd64-linux-tdep.c
--- amd64-linux-tdep.c	10 Aug 2009 03:06:34 -0000	1.26
+++ amd64-linux-tdep.c	16 Aug 2009 22:52:32 -0000
@@ -1415,6 +1415,9 @@ amd64_linux_init_abi (struct gdbarch_inf
   set_gdbarch_fetch_tls_load_module_address (gdbarch,
                                              svr4_fetch_objfile_link_map);
 
+  /* GNU/Linux uses SVR4-style shared libraries.  */
+  set_gdbarch_skip_trampoline_code (gdbarch, find_solib_trampoline_target);
+
   /* Displaced stepping.  */
   set_gdbarch_displaced_step_copy_insn (gdbarch,
                                         amd64_displaced_step_copy_insn);

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