X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fvax-nbsd-tdep.c;h=40007f1166010b37ef481d4728be5fad12b12071;hb=refs%2Fheads%2Fconcurrent-displaced-stepping-2020-04-01;hp=1f6cc1ac7f9690986052c65e62aa6a55e292d72e;hpb=481695ed5f6e0a8a9c9c50bfac1cdd2b3151e6c9;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/vax-nbsd-tdep.c b/gdb/vax-nbsd-tdep.c index 1f6cc1ac7f..40007f1166 100644 --- a/gdb/vax-nbsd-tdep.c +++ b/gdb/vax-nbsd-tdep.c @@ -1,6 +1,6 @@ /* Target-dependent code for NetBSD/vax. - Copyright (C) 2004-2017 Free Software Foundation, Inc. + Copyright (C) 2004-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -22,6 +22,7 @@ #include "osabi.h" #include "vax-tdep.h" +#include "nbsd-tdep.h" #include "solib-svr4.h" /* NetBSD ELF. */ @@ -29,13 +30,16 @@ static void vaxnbsd_elf_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) { + nbsd_init_abi (info, gdbarch); + /* NetBSD ELF uses SVR4-style shared libraries. */ set_solib_svr4_fetch_link_map_offsets (gdbarch, svr4_ilp32_fetch_link_map_offsets); } +void _initialize_vaxnbsd_tdep (); void -_initialize_vaxnbsd_tdep (void) +_initialize_vaxnbsd_tdep () { gdbarch_register_osabi (bfd_arch_vax, 0, GDB_OSABI_NETBSD, vaxnbsd_elf_init_abi);