From 042a84d96cc820d4d2b57e98443bbb3756f2f876 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Wed, 2 Oct 2013 09:22:43 +0000 Subject: [PATCH] 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. --- gdb/ChangeLog | 5 +++++ gdb/symtab.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 84e8cc55e2d..69c72c52b22 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-10-02 Joel Brobecker + + * symtab.c (compare_search_syms): Use FILENAME_CMP instead of + strcmp to compare two symtab filenames. + 2013-10-02 Joel Brobecker * symtab.c (search_symbols_equal): Delete. diff --git a/gdb/symtab.c b/gdb/symtab.c index cf03b43c7c4..d3622e508f1 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; -- 2.30.2