================
@@ -1122,10 +1140,17 @@ ModuleList::GetSharedModule(const ModuleSpec
&module_spec, ModuleSP &module_sp,
module_sp.reset();
}
- if (module_search_paths_ptr) {
- const auto num_directories = module_search_paths_ptr->GetSize();
+ // Get module search paths from the target if available.
+ lldb::TargetSP target_sp = module_spec.GetTargetSP();
+ FileSpecList module_search_paths;
+ if (target_sp) {
+ module_search_paths = target_sp->GetExecutableSearchPaths();
+ }
----------------
clayborg wrote:
no `{}` on single line if statements per llvm coding guidelines
https://github.com/llvm/llvm-project/pull/160199
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits