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.
This commit is contained in:
parent
a67f917e4c
commit
1e3fad37be
|
@ -1,3 +1,8 @@
|
||||||
|
2010-10-26 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
|
* dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
|
||||||
|
by call to FILENAME_CMP.
|
||||||
|
|
||||||
2010-10-26 Joel Brobecker <brobecker@adacore.com>
|
2010-10-26 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
* dictionary.c (dict_hash): Move assignment out of if condition.
|
* dictionary.c (dict_hash): Move assignment out of if condition.
|
||||||
|
|
|
@ -10087,7 +10087,7 @@ psymtab_include_file_name (const struct line_header *lh, int file_index,
|
||||||
pst_filename = copied_name;
|
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)
|
if (include_name_to_compare != include_name)
|
||||||
xfree (include_name_to_compare);
|
xfree (include_name_to_compare);
|
||||||
|
|
Loading…
Reference in New Issue