mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-21 06:54:20 +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:
@ -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>
|
2013-10-02 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
* symtab.c (search_symbols_equal): Delete.
|
* 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;
|
struct symbol_search *sym_b = *(struct symbol_search **) sb;
|
||||||
int c;
|
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)
|
if (c != 0)
|
||||||
return c;
|
return c;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user