[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:40 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;
----------------
clayborg wrote:

We don't need this pointer, just use `module_search_paths` everywhere in this function.

https://github.com/llvm/llvm-project/pull/160199


More information about the lldb-commits mailing list