Fix ada array bounds display
[deliverable/binutils-gdb.git] / gdb / nbsd-tdep.c
CommitLineData
ea5bc2a6 1/* Common target-dependent code for NetBSD systems.
76a9d10f 2
7b6bb8da 3 Copyright (C) 2002, 2006, 2007, 2008, 2009, 2010, 2011
4c38e0a4 4 Free Software Foundation, Inc.
76a9d10f 5
ea5bc2a6
JT
6 Contributed by Wasabi Systems, Inc.
7
8 This file is part of GDB.
9
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
a9762ec7 12 the Free Software Foundation; either version 3 of the License, or
ea5bc2a6 13 (at your option) any later version.
a9762ec7 14
ea5bc2a6
JT
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.
a9762ec7 19
ea5bc2a6 20 You should have received a copy of the GNU General Public License
a9762ec7 21 along with this program. If not, see <http://www.gnu.org/licenses/>. */
ea5bc2a6
JT
22
23#include "defs.h"
3d9b49b0 24#include "gdb_string.h"
ea5bc2a6 25#include "solib-svr4.h"
63807e1d 26#include "nbsd-tdep.h"
ea5bc2a6 27
76a9d10f
MK
28/* FIXME: kettenis/20060115: We should really eliminate the next two
29 functions completely. */
ea5bc2a6 30
ea5bc2a6
JT
31struct link_map_offsets *
32nbsd_ilp32_solib_svr4_fetch_link_map_offsets (void)
33{
76a9d10f 34 return svr4_ilp32_fetch_link_map_offsets ();
ea5bc2a6
JT
35}
36
37struct link_map_offsets *
38nbsd_lp64_solib_svr4_fetch_link_map_offsets (void)
39{
76a9d10f 40 return svr4_lp64_fetch_link_map_offsets ();
ea5bc2a6 41}
3d9b49b0
JT
42
43int
44nbsd_pc_in_sigtramp (CORE_ADDR pc, char *func_name)
45{
46 /* Check for libc-provided signal trampoline. All such trampolines
47 have function names which begin with "__sigtramp". */
48
49 return (func_name != NULL
50 && strncmp (func_name, "__sigtramp", 10) == 0);
51}
This page took 0.888309 seconds and 4 git commands to generate.