aboutsummaryrefslogtreecommitdiff
path: root/gdb/sh-linux-tdep.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2008-02-27 01:06:21 +0000
committerDaniel Jacobowitz <drow@false.org>2008-02-27 01:06:21 +0000
commite25c958c9864171b373b9089b80c312f849cb7c1 (patch)
treeba19ff162729629d0808dfe948ab0880e9820744 /gdb/sh-linux-tdep.c
parent29dccb240bdb9d7de12936a6889b27550edd761b (diff)
downloadgdb-e25c958c9864171b373b9089b80c312f849cb7c1.zip
gdb-e25c958c9864171b373b9089b80c312f849cb7c1.tar.gz
gdb-e25c958c9864171b373b9089b80c312f849cb7c1.tar.bz2
* configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
* sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver and svr4_fetch_objfile_link_map. * Makefile.in (sh-linux-tdep.o): Update.
Diffstat (limited to 'gdb/sh-linux-tdep.c')
-rw-r--r--gdb/sh-linux-tdep.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/sh-linux-tdep.c b/gdb/sh-linux-tdep.c
index b93b4f8..dc724d3 100644
--- a/gdb/sh-linux-tdep.c
+++ b/gdb/sh-linux-tdep.c
@@ -23,6 +23,8 @@
#include "solib-svr4.h"
#include "symtab.h"
+#include "glibc-tdep.h"
+
static void
sh_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
{
@@ -30,6 +32,10 @@ sh_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
set_gdbarch_skip_trampoline_code (gdbarch, find_solib_trampoline_target);
set_solib_svr4_fetch_link_map_offsets
(gdbarch, svr4_ilp32_fetch_link_map_offsets);
+ set_gdbarch_skip_solib_resolver (gdbarch, glibc_skip_solib_resolver);
+
+ set_gdbarch_fetch_tls_load_module_address (gdbarch,
+ svr4_fetch_objfile_link_map);
}
/* Provide a prototype to silence -Wmissing-prototypes. */