Call common OpenBSD ABI init code on OpenBSD/mips64.

* mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
        * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
        gdb_target_obs.
This commit is contained in:
Mark Kettenis 2014-02-27 14:07:10 +01:00
parent bee30a640c
commit 3cdd631f17
3 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2014-02-27 Mark Kettenis <kettenis@gnu.org>
* mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
* configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
gdb_target_obs.
2014-02-27 Mark Kettenis <kettenis@gnu.org>
* obsd-tdep.c (obsd_auxv_parse): New function.

View file

@ -372,7 +372,7 @@ mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
;;
mips64*-*-openbsd*)
# Target: OpenBSD/mips64
gdb_target_obs="mips-tdep.o mips64obsd-tdep.o solib-svr4.o"
gdb_target_obs="mips-tdep.o mips64obsd-tdep.o obsd-tdep.o solib-svr4.o"
;;
mips*-*-elf)
# Target: MIPS ELF

View file

@ -28,6 +28,7 @@
#include "gdb_assert.h"
#include <string.h>
#include "obsd-tdep.h"
#include "mips-tdep.h"
#include "solib-svr4.h"
@ -155,6 +156,8 @@ mips64obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
set_gdbarch_long_double_bit (gdbarch, 128);
set_gdbarch_long_double_format (gdbarch, floatformats_mips64_quad);
obsd_init_abi(info, gdbarch);
/* OpenBSD/mips64 has SVR4-style shared libraries. */
set_solib_svr4_fetch_link_map_offsets
(gdbarch, svr4_lp64_fetch_link_map_offsets);