* inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
[deliverable/binutils-gdb.git] / gdb / nbsd-tdep.c
index b5cdffb9369fc0b47b89ae15c1e6cddf28d12584..a2d8f7d1533392e048e7c2c3a3d49cfa0255e5d8 100644 (file)
    Boston, MA 02111-1307, USA.  */
 
 #include "defs.h"
+#include "gdb_string.h"
 #include "solib-svr4.h"
 
 /* Fetch (and possibly build) an appropriate link_map_offsets
-   structure for NetBSD/sh targets using the struct offsets
-   defined in <link.h> (but without actual reference to that file).
+   structure for NetBSD targets using the struct offsets defined
+   in <link.h> (but without actual reference to that file).
   
-   This makes it possible to access NetBSD/sh shared libraries
-   from a GDB that was not built on a NetBSD/sh host (for cross
-   debugging).
+   This makes it possible to access NetBSD shared libraries from a
+   GDB that was not built on the same platform (for cross debugging).
 
    We provide versions for ILP32 and LP64 NetBSD targets here.  */
   
@@ -97,3 +97,13 @@ nbsd_lp64_solib_svr4_fetch_link_map_offsets (void)
 
   return lmp;
 }
+
+int
+nbsd_pc_in_sigtramp (CORE_ADDR pc, char *func_name)
+{
+  /* Check for libc-provided signal trampoline.  All such trampolines
+     have function names which begin with "__sigtramp".  */
+
+  return (func_name != NULL
+         && strncmp (func_name, "__sigtramp", 10) == 0);
+}
This page took 0.025384 seconds and 4 git commands to generate.