[Lldb-commits] [lldb] [lldb] Enable locate module callback for main executable (PR #160199)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Wed Nov 5 12:22:39 PST 2025
================
@@ -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
More information about the lldb-commits
mailing list