[Lldb-commits] [lldb] [lldb/test] Register the addressable_bits_scripted_process module with the script interpreter (PR #224803)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 18 21:52:33 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Med Ismail Bennani (medismailben)
<details>
<summary>Changes</summary>
`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.
---
Full diff: https://github.com/llvm/llvm-project/pull/224803.diff
1 Files Affected:
- (modified) lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py (+5)
``````````diff
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(
``````````
</details>
https://github.com/llvm/llvm-project/pull/224803
More information about the lldb-commits
mailing list