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 | 3510d1f2fd97b92209998a4ddadadf19ccc0f0c1 (patch) | |
tree | 1d0ec04dc165ed735fb4f65547f41591b0bdea10 /gdb/sparc64obsd-tdep.c | |
parent | e2a68bcce6a3422a18c05258c512047a1ce01d70 (diff) | |
download | gdb-3510d1f2fd97b92209998a4ddadadf19ccc0f0c1.zip gdb-3510d1f2fd97b92209998a4ddadadf19ccc0f0c1.tar.gz gdb-3510d1f2fd97b92209998a4ddadadf19ccc0f0c1.tar.bz2 |
* 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/sparc64obsd-tdep.c')
-rw-r--r-- | gdb/sparc64obsd-tdep.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/sparc64obsd-tdep.c b/gdb/sparc64obsd-tdep.c index 5f8cb3b..fdd5e81 100644 --- a/gdb/sparc64obsd-tdep.c +++ b/gdb/sparc64obsd-tdep.c @@ -25,13 +25,13 @@ #include "osabi.h" #include "regset.h" #include "symtab.h" +#include "objfiles.h" #include "solib-svr4.h" #include "trad-frame.h" #include "gdb_assert.h" #include "sparc64-tdep.h" -#include "nbsd-tdep.h" /* OpenBSD uses the traditional NetBSD core file format, even for ports that use ELF. The core files don't use multiple register @@ -201,8 +201,11 @@ sparc64obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) sparc64_init_abi (info, gdbarch); + /* OpenBSD/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); } |