From: Joel Brobecker Date: Tue, 26 Oct 2010 17:59:50 +0000 (+0000) Subject: replace strcmp by FILENAME_CMP for filename comparison X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1e3fad37be22688d325e2e96ce308e790aa81120;p=binutils-gdb.git replace strcmp by FILENAME_CMP for filename comparison gdb/ChangeLog: * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp by call to FILENAME_CMP. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 99d24f44e28..ad3e8947648 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-10-26 Joel Brobecker + + * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp + by call to FILENAME_CMP. + 2010-10-26 Joel Brobecker * dictionary.c (dict_hash): Move assignment out of if condition. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 7c784545d39..e613d90c4dd 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -10087,7 +10087,7 @@ psymtab_include_file_name (const struct line_header *lh, int file_index, pst_filename = copied_name; } - file_is_pst = strcmp (include_name_to_compare, pst_filename) == 0; + file_is_pst = FILENAME_CMP (include_name_to_compare, pst_filename) == 0; if (include_name_to_compare != include_name) xfree (include_name_to_compare);