mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-24 08:54:15 +08:00
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:
parent
6b9780fbbd
commit
042a84d96c
@ -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.
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user