From 3cdd631f17c822cd58f2fc9c742dc60ed683b5c1 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Thu, 27 Feb 2014 14:07:10 +0100 Subject: [PATCH] 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. --- gdb/ChangeLog | 6 ++++++ gdb/configure.tgt | 2 +- gdb/mips64obsd-tdep.c | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8f446dfe507..59407ce9c28 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2014-02-27 Mark Kettenis + + * 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 * obsd-tdep.c (obsd_auxv_parse): New function. diff --git a/gdb/configure.tgt b/gdb/configure.tgt index 6706f845501..01311b248c3 100644 --- a/gdb/configure.tgt +++ b/gdb/configure.tgt @@ -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 diff --git a/gdb/mips64obsd-tdep.c b/gdb/mips64obsd-tdep.c index 92b6701e8fe..62853ce1417 100644 --- a/gdb/mips64obsd-tdep.c +++ b/gdb/mips64obsd-tdep.c @@ -28,6 +28,7 @@ #include "gdb_assert.h" #include +#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); -- 2.30.2