[Lldb-commits] [PATCH] D124801: [lldb] Make GetSharedModuleWithLocalCache consider the device support directory
Jonas Devlieghere via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon May 2 21:07:34 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe53019a8ff77: [lldb] Make GetSharedModuleWithLocalCache consider the device support directory (authored by JDevlieghere).
Herald added a project: LLDB.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124801/new/
https://reviews.llvm.org/D124801
Files:
lldb/source/Plugins/Platform/MacOSX/PlatformDarwinDevice.cpp
Index: lldb/source/Plugins/Platform/MacOSX/PlatformDarwinDevice.cpp
===================================================================
--- lldb/source/Plugins/Platform/MacOSX/PlatformDarwinDevice.cpp
+++ lldb/source/Plugins/Platform/MacOSX/PlatformDarwinDevice.cpp
@@ -328,6 +328,29 @@
return err;
}
}
+
+ // We failed to find the module in our shared cache. Let's see if we have a
+ // copy in our device support directory.
+ FileSpec device_support_spec(GetDeviceSupportDirectoryForOSVersion());
+ device_support_spec.AppendPathComponent("Symbols");
+ device_support_spec.AppendPathComponent(
+ module_spec.GetFileSpec().GetPath());
+ FileSystem::Instance().Resolve(device_support_spec);
+ if (FileSystem::Instance().Exists(device_support_spec)) {
+ ModuleSpec local_spec(device_support_spec, module_spec.GetUUID());
+ err = ModuleList::GetSharedModule(local_spec, module_sp,
+ module_search_paths_ptr, old_modules,
+ did_create_ptr);
+ if (module_sp) {
+ LLDB_LOGF(log,
+ "[%s] module %s was found in Device Support "
+ "directory: %s",
+ (IsHost() ? "host" : "remote"),
+ module_spec.GetFileSpec().GetPath().c_str(),
+ local_spec.GetFileSpec().GetPath().c_str());
+ return err;
+ }
+ }
}
err = ModuleList::GetSharedModule(module_spec, module_sp,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124801.426574.patch
Type: text/x-patch
Size: 1508 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220503/4ae07915/attachment-0001.bin>
More information about the lldb-commits
mailing list