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/symtab.c | |
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/symtab.c')
-rw-r--r-- | gdb/symtab.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |