]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/i386-cygwin-tdep.c
New common function "startswith"
[thirdparty/binutils-gdb.git] / gdb / i386-cygwin-tdep.c
index a4f64e515d01c9c3f16aa3bec85e531eedce6cfd..79ff478fa9532bba8419398b88d7f478fd90e1ee 100644 (file)
@@ -107,7 +107,7 @@ core_process_module_section (bfd *abfd, asection *sect, void *obj)
 
   gdb_byte *buf = NULL;
 
-  if (strncmp (sect->name, ".module", 7) != 0)
+  if (!startswith (sect->name, ".module"))
     return;
 
   buf = xmalloc (bfd_get_section_size (sect) + 1);