aboutsummaryrefslogtreecommitdiff
path: root/gdb/amd64-linux-tdep.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2012-05-07 10:47:22 +0000
committerPedro Alves <palves@redhat.com>2012-05-07 10:47:22 +0000
commit545c08b4a9d00a919509cd88e939db2ec1d1df34 (patch)
tree7f71d269cb42b148849a9c3237bd6c0f8c9b843f /gdb/amd64-linux-tdep.c
parent2de5d1350379e00c420dc4f1925ed82927cc7521 (diff)
downloadgdb-545c08b4a9d00a919509cd88e939db2ec1d1df34.zip
gdb-545c08b4a9d00a919509cd88e939db2ec1d1df34.tar.gz
gdb-545c08b4a9d00a919509cd88e939db2ec1d1df34.tar.bz2
2012-05-07 Pedro Alves <palves@redhat.com>
* amd64-linux-tdep.c: Include glibc-tdep.h. (amd64_linux_init_abi): Install glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
Diffstat (limited to 'gdb/amd64-linux-tdep.c')
-rw-r--r--gdb/amd64-linux-tdep.c4
1 files changed, 4 insertions, 0 deletions
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);