1 /* Common target-dependent code for NetBSD systems.
3 Copyright (C) 2002, 2006, 2007, 2008, 2009, 2010
4 Free Software Foundation, Inc.
6 Contributed by Wasabi Systems, Inc.
8 This file is part of GDB.
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 3 of the License, or
13 (at your option) any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program. If not, see <http://www.gnu.org/licenses/>. */
24 #include "gdb_string.h"
25 #include "solib-svr4.h"
26 #include "nbsd-tdep.h"
28 /* FIXME: kettenis/20060115: We should really eliminate the next two
29 functions completely. */
31 struct link_map_offsets *
32 nbsd_ilp32_solib_svr4_fetch_link_map_offsets (void)
34 return svr4_ilp32_fetch_link_map_offsets ();
37 struct link_map_offsets *
38 nbsd_lp64_solib_svr4_fetch_link_map_offsets (void)
40 return svr4_lp64_fetch_link_map_offsets ();
44 nbsd_pc_in_sigtramp (CORE_ADDR pc, char *func_name)
46 /* Check for libc-provided signal trampoline. All such trampolines
47 have function names which begin with "__sigtramp". */
49 return (func_name != NULL
50 && strncmp (func_name, "__sigtramp", 10) == 0);