* dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
[deliverable/binutils-gdb.git] / gdb / dwarf2read.c
index 31a08a74e82b94dde7f3135faed4a57778b50b35..1cc5258a56581a6afd2303c55e1b64911354e131 100644 (file)
@@ -2199,16 +2199,11 @@ dw2_lookup_symtab (struct objfile *objfile, const char *name,
              const char *this_full_name = dw2_require_full_path (objfile,
                                                                  per_cu, j);
 
-             if (this_full_name != NULL)
+             if (this_full_name != NULL
+                 && FILENAME_CMP (real_path, this_full_name) == 0)
                {
-                 char *rp = gdb_realpath (this_full_name);
-                 if (rp != NULL && FILENAME_CMP (real_path, rp) == 0)
-                   {
-                     xfree (rp);
-                     *result = dw2_instantiate_symtab (objfile, per_cu);
-                     return 1;
-                   }
-                 xfree (rp);
+                 *result = dw2_instantiate_symtab (objfile, per_cu);
+                 return 1;
                }
            }
        }
This page took 0.029794 seconds and 4 git commands to generate.