[Lldb-commits] [lldb] [lldb] Add `scripting extension list --instances` (PR #226043)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 6 17:59:01 PDT 2026


================
@@ -2672,6 +2672,22 @@ bool ScriptInterpreterPythonImpl::LoadScriptingModule(
   if (error.Fail())
     return false;
 
+  // __lldb_init_module may instantiate extensions from the module, so the
+  // path must be known before it runs.
+  if (llvm::Expected<PythonModule> py_module =
+          PythonModule::Import(module_name)) {
----------------
JDevlieghere wrote:

IIUC, after ExecuteMultipleLines already imported or reloaded the module, this does a second sys.modules lookup and attribute fetch?

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


More information about the lldb-commits mailing list