OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.1/] [gdb/] [nbsd-tdep.c] - Blame information for rev 227

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
/* Common target-dependent code for NetBSD systems.
2
 
3
   Copyright (C) 2002, 2006, 2007, 2008, 2009, 2010
4
   Free Software Foundation, Inc.
5
 
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
12
   the Free Software Foundation; either version 3 of the License, or
13
   (at your option) any later version.
14
 
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.
19
 
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/>.  */
22
 
23
#include "defs.h"
24
#include "gdb_string.h"
25
#include "solib-svr4.h"
26
#include "nbsd-tdep.h"
27
 
28
/* FIXME: kettenis/20060115: We should really eliminate the next two
29
   functions completely.  */
30
 
31
struct link_map_offsets *
32
nbsd_ilp32_solib_svr4_fetch_link_map_offsets (void)
33
{
34
  return svr4_ilp32_fetch_link_map_offsets ();
35
}
36
 
37
struct link_map_offsets *
38
nbsd_lp64_solib_svr4_fetch_link_map_offsets (void)
39
{
40
  return svr4_lp64_fetch_link_map_offsets ();
41
}
42
 
43
int
44
nbsd_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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.