New common function "startswith"
[deliverable/binutils-gdb.git] / gdb / ppc-linux-tdep.c
index a7b1163571642b4ad47bc880a2f8dae754e9e5a8..6c6eacfb16aff046e1da7ccd67781f64a8da0f4b 100644 (file)
@@ -985,7 +985,7 @@ ppc_linux_write_pc (struct regcache *regcache, CORE_ADDR pc)
 static int
 ppc_linux_spu_section (bfd *abfd, asection *asect, void *user_data)
 {
-  return strncmp (bfd_section_name (abfd, asect), "SPU/", 4) == 0;
+  return startswith (bfd_section_name (abfd, asect), "SPU/");
 }
 
 static const struct target_desc *
This page took 0.025866 seconds and 4 git commands to generate.