Use FILENAME_CMP to compare filenames in compare_search_syms.
authorJoel Brobecker <brobecker@gnat.com>
Wed, 2 Oct 2013 09:22:43 +0000 (09:22 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Wed, 2 Oct 2013 09:22:43 +0000 (09:22 +0000)
gdb/ChangeLog:

        * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
        strcmp to compare two symtab filenames.

gdb/ChangeLog
gdb/symtab.c

index 84e8cc55e2dbbdaa841e051d5da454be02d04a2b..69c72c52b22b9feeed0707bc1e9cdd555ab7dbf8 100644 (file)
@@ -1,3 +1,8 @@
+2013-10-02  Joel Brobecker  <brobecker@adacore.com>
+
+       * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
+       strcmp to compare two symtab filenames.
+
 2013-10-02  Joel Brobecker  <brobecker@adacore.com>
 
        * symtab.c (search_symbols_equal): Delete.
index cf03b43c7c488db7f073005f5f36cfd54090a718..d3622e508f10a19a4648340701c0e6f2dcfe4834 100644 (file)
@@ -3336,7 +3336,7 @@ compare_search_syms (const void *sa, const void *sb)
   struct symbol_search *sym_b = *(struct symbol_search **) sb;
   int c;
 
-  c = strcmp (sym_a->symtab->filename, sym_b->symtab->filename);
+  c = FILENAME_CMP (sym_a->symtab->filename, sym_b->symtab->filename);
   if (c != 0)
     return c;