================ @@ -1742,20 +1742,37 @@ SymbolFileDWARF::GetDwoSymbolFileForCompileUnit( if (std::shared_ptr<SymbolFileDWARFDwo> dwp_sp = GetDwpSymbolFile()) return dwp_sp; - FileSpec dwo_file(dwo_name); - FileSystem::Instance().Resolve(dwo_file); - bool found = false; + const char *comp_dir = + cu_die.GetAttributeValueAsString(dwarf_cu, DW_AT_comp_dir, nullptr); + + // Try locating the dwo via the callback first. + FileSpec dwo_file; + SymbolFile::LocateDwoCallback locate_dwo_callback = + SymbolFile::GetLocateDwoCallback(); + if (locate_dwo_callback) { ---------------- bulbazord wrote:
You could merge these since `locate_dwo_callback` isn't used later on. ``` if (SymbolFile::LocateDwoCallback locate_dwo_callback = SymbolFile::GetLocateDwoCallback()) { ``` https://github.com/llvm/llvm-project/pull/69517 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits