diff options
author | Mark Kettenis <kettenis@gnu.org> | 2004-09-19 17:21:29 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2004-09-19 17:21:29 +0000 |
commit | 8ceea9d05e4ff83ca91de2d445568a5d8f61661c (patch) | |
tree | 56dcd70deb71ccba7b7ea413474fcd5ba44043f2 /gdb/sparc64nbsd-tdep.c | |
parent | 50e330a032ea9278a78f9f04a2573e59e1df1c71 (diff) | |
download | gdb-8ceea9d05e4ff83ca91de2d445568a5d8f61661c.tar.gz |
* sparc64nbsd-tdep.c: Include "objfiles.h".
(sparc64nbsd_init_abi): Set in_solib_call_trampoline and
skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
svr4_lp64_fetch_link_map_offsets.
* sparc64obsd-tdep.c: Include "objfiles.h". Don't include
"nbsd-tdep.h".
(sparc64obsd_init_abi): Set in_solib_call_trampoline and
skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
svr4_lp64_fetch_link_map_offsets.
* Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
dependencies.
Diffstat (limited to 'gdb/sparc64nbsd-tdep.c')
-rw-r--r-- | gdb/sparc64nbsd-tdep.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/sparc64nbsd-tdep.c b/gdb/sparc64nbsd-tdep.c index 35ad2326ff3..aa665da8c5d 100644 --- a/gdb/sparc64nbsd-tdep.c +++ b/gdb/sparc64nbsd-tdep.c @@ -28,6 +28,7 @@ #include "regcache.h" #include "regset.h" #include "symtab.h" +#include "objfiles.h" #include "solib-svr4.h" #include "trad-frame.h" @@ -236,8 +237,11 @@ sparc64nbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) sparc64_init_abi (info, gdbarch); + /* NetBSD/sparc64 has SVR4-style shared libraries... */ + set_gdbarch_in_solib_call_trampoline (gdbarch, in_plt_section); + set_gdbarch_skip_trampoline_code (gdbarch, find_solib_trampoline_target); set_solib_svr4_fetch_link_map_offsets - (gdbarch, nbsd_lp64_solib_svr4_fetch_link_map_offsets); + (gdbarch, svr4_lp64_fetch_link_map_offsets); } |