[Lldb-commits] [PATCH] D131212: Allow host platform to use sdk sysroot directory option when resolving shared modules
Trevor Joynson via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Aug 4 15:28:20 PDT 2022
trevorj created this revision.
Herald added a project: All.
trevorj requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
Hi! We noticed recently that when using the host platform with an sdk sysroot set, modules are not resolved using a path prefixed by the set sysroot path.
If I'm just doing something wrong let me know too :)
Thanks!
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D131212
Files:
lldb/source/Target/Platform.cpp
Index: lldb/source/Target/Platform.cpp
===================================================================
--- lldb/source/Target/Platform.cpp
+++ lldb/source/Target/Platform.cpp
@@ -201,11 +201,6 @@
const ModuleSpec &module_spec, Process *process, ModuleSP &module_sp,
const FileSpecList *module_search_paths_ptr,
llvm::SmallVectorImpl<lldb::ModuleSP> *old_modules, bool *did_create_ptr) {
- if (IsHost())
- return ModuleList::GetSharedModule(module_spec, module_sp,
- module_search_paths_ptr, old_modules,
- did_create_ptr, false);
-
// Module resolver lambda.
auto resolver = [&](const ModuleSpec &spec) {
Status error(eErrorTypeGeneric);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131212.450152.patch
Type: text/x-patch
Size: 748 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220804/bae03e8a/attachment.bin>
More information about the lldb-commits
mailing list