GDB (API)
/home/stan/gdb/src/gdb/nbsd-tdep.c
Go to the documentation of this file.
00001 /* Common target-dependent code for NetBSD systems.
00002 
00003    Copyright (C) 2002-2013 Free Software Foundation, Inc.
00004 
00005    Contributed by Wasabi Systems, Inc.
00006   
00007    This file is part of GDB.
00008   
00009    This program is free software; you can redistribute it and/or modify
00010    it under the terms of the GNU General Public License as published by
00011    the Free Software Foundation; either version 3 of the License, or
00012    (at your option) any later version.
00013 
00014    This program is distributed in the hope that it will be useful,
00015    but WITHOUT ANY WARRANTY; without even the implied warranty of
00016    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017    GNU General Public License for more details.
00018 
00019    You should have received a copy of the GNU General Public License
00020    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
00021 
00022 #include "defs.h"
00023 #include "gdb_string.h"
00024 #include "solib-svr4.h"
00025 #include "nbsd-tdep.h"
00026 
00027 /* FIXME: kettenis/20060115: We should really eliminate the next two
00028    functions completely.  */
00029 
00030 struct link_map_offsets *
00031 nbsd_ilp32_solib_svr4_fetch_link_map_offsets (void)
00032 {
00033   return svr4_ilp32_fetch_link_map_offsets ();
00034 }
00035 
00036 struct link_map_offsets *
00037 nbsd_lp64_solib_svr4_fetch_link_map_offsets (void)
00038 {
00039   return svr4_lp64_fetch_link_map_offsets ();
00040 }
00041 
00042 int
00043 nbsd_pc_in_sigtramp (CORE_ADDR pc, const char *func_name)
00044 {
00045   /* Check for libc-provided signal trampoline.  All such trampolines
00046      have function names which begin with "__sigtramp".  */
00047 
00048   return (func_name != NULL
00049           && strncmp (func_name, "__sigtramp", 10) == 0);
00050 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines