aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc64fbsd-tdep.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-03-06 21:29:10 +0000
committerMark Kettenis <kettenis@gnu.org>2005-03-06 21:29:10 +0000
commit9e07977bdaecf781638154dc14f2056e9da68010 (patch)
tree657e4c5a8a960b3af91676760010429448ca473f /gdb/sparc64fbsd-tdep.c
parent65dce80e6f7f3e9f852bc7796606c1cd67086fc8 (diff)
downloadgdb-9e07977bdaecf781638154dc14f2056e9da68010.zip
gdb-9e07977bdaecf781638154dc14f2056e9da68010.tar.gz
gdb-9e07977bdaecf781638154dc14f2056e9da68010.tar.bz2
* sparc64fbsd-tdep.c: Include "solib-svr4.h".
(sparc64fbsd_init_abi): Set skip_trampoline_code and solib_svr4_fetch_link_map_offsets. * Makefile.in (sparc64fbsd-tdep.o): Update dependencies.
Diffstat (limited to 'gdb/sparc64fbsd-tdep.c')
-rw-r--r--gdb/sparc64fbsd-tdep.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/sparc64fbsd-tdep.c b/gdb/sparc64fbsd-tdep.c
index 7cd3d7c..50e2061 100644
--- a/gdb/sparc64fbsd-tdep.c
+++ b/gdb/sparc64fbsd-tdep.c
@@ -33,6 +33,7 @@
#include "gdb_string.h"
#include "sparc64-tdep.h"
+#include "solib-svr4.h"
/* From <machine/reg.h>. */
const struct sparc_gregset sparc64fbsd_gregset =
@@ -226,6 +227,11 @@ sparc64fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
frame_unwind_append_sniffer (gdbarch, sparc64fbsd_sigtramp_frame_sniffer);
sparc64_init_abi (info, gdbarch);
+
+ /* FreeBSD/sparc64 has SVR4-style shared libraries. */
+ set_gdbarch_skip_trampoline_code (gdbarch, find_solib_trampoline_target);
+ set_solib_svr4_fetch_link_map_offsets
+ (gdbarch, svr4_lp64_fetch_link_map_offsets);
}
/* Provide a prototype to silence -Wmissing-prototypes. */