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. */
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);
+}