GDB (API)
|
00001 /* Target-dependent code for NetBSD/vax. 00002 00003 Copyright (C) 2004-2013 Free Software Foundation, Inc. 00004 00005 This file is part of GDB. 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation; either version 3 of the License, or 00010 (at your option) any later version. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 00019 00020 #include "defs.h" 00021 #include "arch-utils.h" 00022 #include "osabi.h" 00023 00024 #include "vax-tdep.h" 00025 #include "solib-svr4.h" 00026 00027 #include "gdb_string.h" 00028 00029 /* NetBSD ELF. */ 00030 00031 static void 00032 vaxnbsd_elf_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) 00033 { 00034 /* NetBSD ELF uses SVR4-style shared libraries. */ 00035 set_solib_svr4_fetch_link_map_offsets 00036 (gdbarch, svr4_ilp32_fetch_link_map_offsets); 00037 } 00038 00039 00040 /* Provide a prototype to silence -Wmissing-prototypes. */ 00041 void _initialize_vaxnbsd_tdep (void); 00042 00043 void 00044 _initialize_vaxnbsd_tdep (void) 00045 { 00046 gdbarch_register_osabi (bfd_arch_vax, 0, GDB_OSABI_NETBSD_ELF, 00047 vaxnbsd_elf_init_abi); 00048 }