Use FILENAME_CMP to compare filenames in compare_search_syms.

gdb/ChangeLog:

        * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
        strcmp to compare two symtab filenames.
This commit is contained in:
Joel Brobecker 2013-10-02 09:22:43 +00:00
parent 6b9780fbbd
commit 042a84d96c
2 changed files with 6 additions and 1 deletions

View 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.

View 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;