Lines Matching +full:module +full:- +full:instance
1 //===-- ModuleCache.cpp ---------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 #include "lldb/Core/Module.h"
88 std::make_shared<Module>(ModuleSpec(sysroot_module_path_spec)); in DeleteExistingModule()
89 module_uuid = module_sp->GetUUID(); in DeleteExistingModule()
98 LLDB_LOGF(log, "Failed to lock module %s: %s", in DeleteExistingModule()
107 if (st.getLinkCount() > 2) // module is referred by other hosts. in DeleteExistingModule()
135 if (FileSystem::Instance().Exists(sysroot_module_path_spec)) { in CreateHostSysRootModuleLink()
162 auto file = FileSystem::Instance().Open( in ModuleLock()
173 m_lock = std::make_unique<lldb_private::LockFile>(m_file_up->GetDescriptor()); in ModuleLock()
174 error = m_lock->WriteLock(0, 1); in ModuleLock()
184 m_file_up->Close(); in Delete()
232 if (!FileSystem::Instance().Exists(module_file_path)) in Get()
233 return Status("Module %s not found", module_file_path.GetPath().c_str()); in Get()
234 if (FileSystem::Instance().GetByteSize(module_file_path) != in Get()
236 return Status("Module %s has invalid file size", in Get()
239 // We may have already cached module but downloaded from an another host - in in Get()
259 FileSpec symfile_spec = GetSymbolFileSpec(cached_module_sp->GetFileSpec()); in Get()
260 if (FileSystem::Instance().Exists(symfile_spec)) in Get()
261 cached_module_sp->SetSymbolFileFileSpec(symfile_spec); in Get()
284 return Status("Failed to lock module %s: %s", in GetAndPut()
289 // Check local cache for a module. in GetAndPut()
299 return Status("Failed to download module: %s", error.AsCString()); in GetAndPut()
301 // Put downloaded file into local module cache. in GetAndPut()
305 return Status("Failed to put module into cache: %s", error.AsCString()); in GetAndPut()
313 // Fetching a symbol file for the module in GetAndPut()
319 // Failed to download a symfile but fetching the module was successful. The in GetAndPut()
320 // module might contain the necessary symbols and the debugging is also in GetAndPut()
333 FileSpec symfile_spec = GetSymbolFileSpec(cached_module_sp->GetFileSpec()); in GetAndPut()
334 cached_module_sp->SetSymbolFileFileSpec(symfile_spec); in GetAndPut()