gdb/nbsd-tdep.c - gdb

Functions defined

Source code

  1. /* Common target-dependent code for NetBSD systems.

  2.    Copyright (C) 2002-2015 Free Software Foundation, Inc.

  3.    Contributed by Wasabi Systems, Inc.

  4.    This file is part of GDB.

  5.    This program is free software; you can redistribute it and/or modify
  6.    it under the terms of the GNU General Public License as published by
  7.    the Free Software Foundation; either version 3 of the License, or
  8.    (at your option) any later version.

  9.    This program is distributed in the hope that it will be useful,
  10.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.    GNU General Public License for more details.

  13.    You should have received a copy of the GNU General Public License
  14.    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */

  15. #include "defs.h"
  16. #include "solib-svr4.h"
  17. #include "nbsd-tdep.h"

  18. /* FIXME: kettenis/20060115: We should really eliminate the next two
  19.    functions completely.  */

  20. struct link_map_offsets *
  21. nbsd_ilp32_solib_svr4_fetch_link_map_offsets (void)
  22. {
  23.   return svr4_ilp32_fetch_link_map_offsets ();
  24. }

  25. struct link_map_offsets *
  26. nbsd_lp64_solib_svr4_fetch_link_map_offsets (void)
  27. {
  28.   return svr4_lp64_fetch_link_map_offsets ();
  29. }

  30. int
  31. nbsd_pc_in_sigtramp (CORE_ADDR pc, const char *func_name)
  32. {
  33.   /* Check for libc-provided signal trampoline.  All such trampolines
  34.      have function names which begin with "__sigtramp".  */

  35.   return (func_name != NULL
  36.           && strncmp (func_name, "__sigtramp", 10) == 0);
  37. }