This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] amd64-linux-tdep: use SVR4 method for skip_trampoline_code
- From: Hui Zhu <teawater at gmail dot com>
- To: Michael Snyder <msnyder at vmware dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Mon, 17 Aug 2009 22:44:57 +0800
- Subject: Re: [RFA] amd64-linux-tdep: use SVR4 method for skip_trampoline_code
- References: <4A888E2B.1030601@vmware.com>
Same with amd64-2.txt. Work with reverse testsuite very well.
Thanks,
Hui
On Mon, Aug 17, 2009 at 06:54, Michael Snyder<msnyder@vmware.com> wrote:
> 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);
>
>