gdb/
[deliverable/binutils-gdb.git] / gdb / dwarf2read.c
index 4d5323e9b869c423778d8314e758b4128f2893d4..beb2ea8ecd82a53b75f950c098a8d4fc0f8bb76f 100644 (file)
@@ -3068,7 +3068,6 @@ dw2_map_symtabs_matching_filename (struct objfile *objfile, const char *name,
 {
   int i;
   const char *name_basename = lbasename (name);
-  int name_len = strlen (name);
   int is_abs = IS_ABSOLUTE_PATH (name);
 
   dw2_setup (objfile);
@@ -3095,8 +3094,7 @@ dw2_map_symtabs_matching_filename (struct objfile *objfile, const char *name,
          const char *this_name = file_data->file_names[j];
 
          if (FILENAME_CMP (name, this_name) == 0
-             || (!is_abs && compare_filenames_for_search (this_name,
-                                                          name, name_len)))
+             || (!is_abs && compare_filenames_for_search (this_name, name)))
            {
              if (dw2_map_expand_apply (objfile, per_cu,
                                        name, full_path, real_path,
@@ -3119,7 +3117,7 @@ dw2_map_symtabs_matching_filename (struct objfile *objfile, const char *name,
                  && (FILENAME_CMP (full_path, this_real_name) == 0
                      || (!is_abs
                          && compare_filenames_for_search (this_real_name,
-                                                          name, name_len))))
+                                                          name))))
                {
                  if (dw2_map_expand_apply (objfile, per_cu,
                                            name, full_path, real_path,
@@ -3137,7 +3135,7 @@ dw2_map_symtabs_matching_filename (struct objfile *objfile, const char *name,
                  && (FILENAME_CMP (real_path, this_real_name) == 0
                      || (!is_abs
                          && compare_filenames_for_search (this_real_name,
-                                                          name, name_len))))
+                                                          name))))
                {
                  if (dw2_map_expand_apply (objfile, per_cu,
                                            name, full_path, real_path,
This page took 0.028386 seconds and 4 git commands to generate.