mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 14:48:27 +08:00
[LLDB] Fix remote executables load and caching (#98623)
Seemingly, #96256 removed the only call to Platform::GetCachedExecutable, which broke the resolution of executable modules in the remote debugging mode (https://github.com/llvm/llvm-project/issues/97410). This commit fixes that.
This commit is contained in:
committed by
GitHub
parent
b96c0123fd
commit
73dad7a765
@@ -1446,7 +1446,8 @@ Platform::GetCachedExecutable(ModuleSpec &module_spec,
|
||||
Status error = GetRemoteSharedModule(
|
||||
module_spec, nullptr, module_sp,
|
||||
[&](const ModuleSpec &spec) {
|
||||
return ResolveExecutable(spec, module_sp, module_search_paths_ptr);
|
||||
return Platform::ResolveExecutable(spec, module_sp,
|
||||
module_search_paths_ptr);
|
||||
},
|
||||
nullptr);
|
||||
if (error.Success()) {
|
||||
|
||||
@@ -46,6 +46,9 @@ Status RemoteAwarePlatform::ResolveExecutable(
|
||||
|
||||
if (!FileSystem::Instance().Exists(resolved_file_spec))
|
||||
FileSystem::Instance().ResolveExecutableLocation(resolved_file_spec);
|
||||
} else if (m_remote_platform_sp) {
|
||||
return GetCachedExecutable(resolved_module_spec, exe_module_sp,
|
||||
module_search_paths_ptr);
|
||||
}
|
||||
|
||||
return Platform::ResolveExecutable(resolved_module_spec, exe_module_sp,
|
||||
|
||||
Reference in New Issue
Block a user