replace strcmp by FILENAME_CMP for filename comparison
authorJoel Brobecker <brobecker@gnat.com>
Tue, 26 Oct 2010 17:59:50 +0000 (17:59 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Tue, 26 Oct 2010 17:59:50 +0000 (17:59 +0000)
gdb/ChangeLog:

        * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
        by call to FILENAME_CMP.

gdb/ChangeLog
gdb/dwarf2read.c

index 99d24f44e285aba77cde95519c992e2690a83f0d..ad3e89476484cc69aa51d9b2ec68fa03f2db161e 100644 (file)
@@ -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>
 
        * dictionary.c (dict_hash): Move assignment out of if condition.
index 7c784545d399554330c4f4d5c183433fa3ed1da1..e613d90c4dd08d35014c9bc23390f99fe6922b54 100644 (file)
@@ -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);
This page took 0.034459 seconds and 4 git commands to generate.