From 545c08b4a9d00a919509cd88e939db2ec1d1df34 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Mon, 7 May 2012 10:47:22 +0000 Subject: 2012-05-07 Pedro Alves * amd64-linux-tdep.c: Include glibc-tdep.h. (amd64_linux_init_abi): Install glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback. --- gdb/ChangeLog | 6 ++++++ gdb/amd64-linux-tdep.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 480fd0d..dec690e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2012-05-07 Pedro Alves + + * amd64-linux-tdep.c: Include glibc-tdep.h. + (amd64_linux_init_abi): Install glibc_skip_solib_resolver as + gdbarch_skip_solib_resolver callback. + 2012-05-06 Jan Kratochvil * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH diff --git a/gdb/amd64-linux-tdep.c b/gdb/amd64-linux-tdep.c index da22c1c..acc7303 100644 --- a/gdb/amd64-linux-tdep.c +++ b/gdb/amd64-linux-tdep.c @@ -38,6 +38,7 @@ #include "amd64-tdep.h" #include "solib-svr4.h" #include "xml-syscall.h" +#include "glibc-tdep.h" #include "features/i386/amd64-linux.c" #include "features/i386/amd64-avx-linux.c" @@ -1342,6 +1343,9 @@ amd64_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) /* GNU/Linux uses SVR4-style shared libraries. */ set_gdbarch_skip_trampoline_code (gdbarch, find_solib_trampoline_target); + /* GNU/Linux uses the dynamic linker included in the GNU C Library. */ + set_gdbarch_skip_solib_resolver (gdbarch, glibc_skip_solib_resolver); + /* Install supported register note sections. */ set_gdbarch_core_regset_sections (gdbarch, amd64_linux_regset_sections); -- cgit v1.1