Fix typo in gdb.python/py-objfile.exp
[deliverable/binutils-gdb.git] / gdb / sparcnbsd-tdep.c
index 7c4d6ee2481041a0805d53ab3208004d09e62fe6..c145919926f1834a2a369907f936669dbcb7d088 100644 (file)
@@ -1,6 +1,6 @@
 /* Target-dependent code for NetBSD/sparc.
 
-   Copyright (C) 2002-2014 Free Software Foundation, Inc.
+   Copyright (C) 2002-2015 Free Software Foundation, Inc.
    Contributed by Wasabi Systems, Inc.
 
    This file is part of GDB.
@@ -30,8 +30,6 @@
 #include "symtab.h"
 #include "trad-frame.h"
 
-#include <string.h>
-
 #include "sparc-tdep.h"
 #include "nbsd-tdep.h"
 
@@ -243,7 +241,7 @@ sparc32nbsd_sigcontext_frame_sniffer (const struct frame_unwind *self,
   find_pc_partial_function (pc, &name, NULL, NULL);
   if (sparc32nbsd_pc_in_sigtramp (pc, name))
     {
-      if (name == NULL || strncmp (name, "__sigtramp_sigcontext", 21))
+      if (name == NULL || !startswith (name, "__sigtramp_sigcontext"))
        return 1;
     }
 
This page took 0.024004 seconds and 4 git commands to generate.