[Lldb-commits] [lldb] [lldb] Enable locate module callback for main executable (PR #160199)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 17 14:12:41 PDT 2025
================
@@ -1122,6 +1140,15 @@ ModuleList::GetSharedModule(const ModuleSpec &module_spec, ModuleSP &module_sp,
module_sp.reset();
}
+ // Get module search paths from the target if available.
+ lldb::TargetSP target_sp = module_spec.GetTargetSP();
+ FileSpecList module_search_paths;
+ FileSpecList *module_search_paths_ptr = nullptr;
+ if (target_sp && target_sp->IsValid()) {
----------------
clayborg wrote:
No need to check `target_sp->IsValid()` here
https://github.com/llvm/llvm-project/pull/160199
More information about the lldb-commits
mailing list