Change objfile::partial_symtabs to be a unique_ptr
[deliverable/binutils-gdb.git] / gdb / nbsd-tdep.c
index 5af97ce85df3ed3ad94168d841b93a0d6051f424..a0d512b0f1ee4c34a77a0aab86dfd45be80605b3 100644 (file)
@@ -1,7 +1,6 @@
 /* Common target-dependent code for NetBSD systems.
 
-   Copyright (C) 2002, 2006, 2007, 2008, 2009, 2010, 2011
-   Free Software Foundation, Inc.
+   Copyright (C) 2002-2019 Free Software Foundation, Inc.
 
    Contributed by Wasabi Systems, Inc.
   
@@ -21,7 +20,6 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "defs.h"
-#include "gdb_string.h"
 #include "solib-svr4.h"
 #include "nbsd-tdep.h"
 
@@ -41,11 +39,11 @@ nbsd_lp64_solib_svr4_fetch_link_map_offsets (void)
 }
 
 int
-nbsd_pc_in_sigtramp (CORE_ADDR pc, char *func_name)
+nbsd_pc_in_sigtramp (CORE_ADDR pc, const 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);
+         && startswith (func_name, "__sigtramp"));
 }
This page took 0.024511 seconds and 4 git commands to generate.