[Lldb-commits] [lldb] Add a new affordance that the Python module in a dSYM (PR #133290)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Fri Mar 28 13:13:16 PDT 2025


================
@@ -2495,6 +2495,12 @@ bool ScriptInterpreterPythonImpl::LoadScriptingModule(
           PyRefType::Owned, static_cast<PyObject *>(module_pyobj)));
   }
 
+  // Finally, if we got a target passed in, then we should tell the new module
+  // about this target:
+  if (target_sp) {
+    return SWIGBridge::LLDBSwigPythonCallModuleNewTarget(
+        module_name.c_str(), m_dictionary_name.c_str(), target_sp);
+  }
----------------
JDevlieghere wrote:

Nit: no braces around single-line (statement?) `if`s. 

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


More information about the lldb-commits mailing list