[Lldb-commits] [lldb] 18f2436 - [lldb/test] Register the addressable_bits_scripted_process module with the script interpreter (#224803)

via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 18 22:09:44 PDT 2026


Author: Med Ismail Bennani
Date: 2026-09-18T22:09:39-07:00
New Revision: 18f24365f1e6ffde585e35c110d2039c082b2091

URL: https://github.com/llvm/llvm-project/commit/18f24365f1e6ffde585e35c110d2039c082b2091
DIFF: https://github.com/llvm/llvm-project/commit/18f24365f1e6ffde585e35c110d2039c082b2091.diff

LOG: [lldb/test] Register the addressable_bits_scripted_process module with the script interpreter (#224803)

`test_scripted_process_addressable_bits` imported
`addressable_bits_scripted_process` into the test process, which makes
the module's constants available to the test but tells lldb's own script
interpreter nothing about it, so
`SBLaunchInfo::SetScriptedProcessClassName()` had nothing to resolve:

```
  error: failed to create ScriptedProcess: failed to create script object:
  Could not find script class:
  addressable_bits_scripted_process.AddressableBitsScriptedProcess
```

Import the file with `command script import` the way the other scripted
process tests in this file do.

Added: 
    

Modified: 
    lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py b/lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py
index 33ff43ea8bc5f..7b6f31f801559 100644
--- a/lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py
+++ b/lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py
@@ -333,6 +333,11 @@ def test_scripted_process_addressable_bits(self):
         target = self.dbg.CreateTarget(self.getBuildArtifact("a.out"))
         self.assertTrue(target, VALID_TARGET)
 
+        self.runCmd(
+            "command script import "
+            + os.path.join(self.getSourceDir(), "addressable_bits_scripted_process.py")
+        )
+
         launch_info = lldb.SBLaunchInfo(None)
         launch_info.SetProcessPluginName("ScriptedProcess")
         launch_info.SetScriptedProcessClassName(


        


More information about the lldb-commits mailing list