New common function "startswith"
[deliverable/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);
This page took 0.024421 seconds and 4 git commands to generate.