diff options
author | Joel Brobecker <brobecker@gnat.com> | 2013-10-02 09:22:43 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2013-10-02 09:22:43 +0000 |
commit | 042a84d96cc820d4d2b57e98443bbb3756f2f876 (patch) | |
tree | 72da1418b136ec2165cf52457996038d9ba5cbc2 /gdb | |
parent | 6b9780fbbd65d5a1cf56a15552c50bd6bfa10a10 (diff) | |
download | gdb-042a84d96cc820d4d2b57e98443bbb3756f2f876.zip gdb-042a84d96cc820d4d2b57e98443bbb3756f2f876.tar.gz gdb-042a84d96cc820d4d2b57e98443bbb3756f2f876.tar.bz2 |
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/symtab.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 84e8cc5..69c72c5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 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. (sort_search_symbols_remove_dups): Replace call to search_symbols_equal by call to compare_search_syms, diff --git a/gdb/symtab.c b/gdb/symtab.c index cf03b43..d3622e5 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -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; |