[Lldb-commits] [lldb] [lldb] Add ScriptedSymbolLocator plugin for source file resolution (PR #181334)

Med Ismail Bennani via lldb-commits lldb-commits at lists.llvm.org
Fri Feb 13 19:32:52 PST 2026


================
@@ -660,6 +670,26 @@ class ScriptedPythonInterface : virtual public ScriptedInterface {
     return python::SWIGBridge::ToSWIGWrapper(arg);
   }
 
+  python::PythonObject Transform(const ModuleSpec &arg) {
+    return python::SWIGBridge::ToSWIGWrapper(
+        m_interpreter.MakeSBModuleSpec(arg));
+  }
+
+  python::PythonObject Transform(const FileSpecList &arg) {
+    python::PythonList py_list(arg.GetSize());
+    for (size_t i = 0; i < arg.GetSize(); i++) {
+      const FileSpec &fs = arg.GetFileSpecAtIndex(i);
+      py_list.SetItemAtIndex(i, python::SWIGBridge::ToSWIGWrapper(
+                                    std::make_unique<lldb::SBFileSpec>(
+                                        fs.GetPath().c_str(), false)));
+    }
+    return py_list;
+  }
----------------
medismailben wrote:

same here

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


More information about the lldb-commits mailing list