This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA] Set solib_call_trampoline on x86-64
- From: Michal Ludvig <mludvig at suse dot cz>
- To: GDB Patches <gdb-patches at sources dot redhat dot com>
- Date: Thu, 18 Jul 2002 11:58:20 +0200
- Subject: [RFA] Set solib_call_trampoline on x86-64
- Organization: SuSE CR
Hi all,
this simple patch fixes problems when stepping over function calls in
shared libraries. OK to commit to mainline? (And to branch...?)
Michal Ludvig
--
* SuSE CR, s.r.o * mludvig@suse.cz
* +420 2 9654 5373 * http://www.suse.cz
2002-07-18 Michal Ludvig <mludvig@suse.cz>
* x86-64-tdep.c (x86_64_gdbarch_init): Set in_solib_call_trampoline
to in_plt_section.
Index: x86-64-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/x86-64-tdep.c,v
retrieving revision 1.9.2.6
diff -u -p -r1.9.2.6 x86-64-tdep.c
--- x86-64-tdep.c 3 Jul 2002 06:00:26 -0000 1.9.2.6
+++ x86-64-tdep.c 17 Jul 2002 16:24:07 -0000
@@ -28,6 +28,7 @@
#include "arch-utils.h"
#include "regcache.h"
#include "symfile.h"
+#include "objfiles.h"
#include "x86-64-tdep.h"
#include "dwarf2cfi.h"
#include "gdb_assert.h"
@@ -1111,6 +1112,8 @@ x86_64_gdbarch_init (struct gdbarch_info
(gdbarch_breakpoint_from_pc_ftype *)
x86_64_breakpoint_from_pc);
+ set_gdbarch_in_solib_call_trampoline (gdbarch,
+ in_plt_section);
/* Amount PC must be decremented by after a breakpoint. This is often the
number of bytes in BREAKPOINT but not always. */