Use bfd_get_filename instead of objfile_name in lookup_dwo_unit
[deliverable/binutils-gdb.git] / gdb / dwarf2 / read.c
index aa1c3f0e92be5cd60558ac9776c739bf44aca60b..2ee98cc1b8cebd341ed1dae34e925f0975db3d33 100644 (file)
@@ -6888,7 +6888,7 @@ lookup_dwo_unit (struct dwarf2_per_cu_data *this_cu,
       if (!signature.has_value ())
        error (_("Dwarf Error: missing dwo_id for dwo_name %s"
                 " [in module %s]"),
-              dwo_name, objfile_name (this_cu->dwarf2_per_objfile->objfile));
+              dwo_name, bfd_get_filename (this_cu->per_bfd->obfd));
       dwo_unit = lookup_dwo_comp_unit (this_cu, dwo_name, comp_dir,
                                       *signature);
     }
This page took 0.029727 seconds and 4 git commands to generate.