[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


================
@@ -265,6 +274,9 @@ class ModuleSpec {
   ArchSpec m_arch;
   UUID m_uuid;
   ConstString m_object_name;
+  /// This is set to take advantage of the target's search path and platform's
+  /// locate module callback
+  std::weak_ptr<Target> m_target;
----------------
clayborg wrote:

change the name to `m_target_wp` to indicate a weak pointer. We name shared pointers with a `_sp` suffix and weak pointers with a `_wp`

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


More information about the lldb-commits mailing list