This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Process record AMD64 patches got soem FAIL with testsuite
- From: Michael Snyder <msnyder at vmware dot com>
- To: Hui Zhu <teawater at gmail dot com>
- Cc: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Wed, 15 Jul 2009 19:36:23 -0700
- Subject: Re: Process record AMD64 patches got soem FAIL with testsuite
- References: <daef60380907062305n1be0f601ibdb280e80f85e1ef@mail.gmail.com>
Hui Zhu wrote:
make check RUNTESTFLAGS="solib-reverse.exp --target_board=precord"
FAIL: gdb.reverse/solib-reverse.exp: reverse-step third sleep
Hui, try adding the attached patch to your amd64 patch.
I think it should fix your "solib-reverse.exp" fails, and
it causes no regressions in the rest of the testsuite.
With this and the two testsuite changes that I made this week,
you should have no more reverse-debugging testsuite fails for
amd64.
Michael
Index: amd64-linux-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/amd64-linux-tdep.c,v
retrieving revision 1.25
diff -u -p -r1.25 amd64-linux-tdep.c
--- amd64-linux-tdep.c 2 Jul 2009 17:25:52 -0000 1.25
+++ amd64-linux-tdep.c 16 Jul 2009 02:40:57 -0000
@@ -291,6 +291,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);