[Lldb-commits] [lldb] [lldb] Guard SBFrame/SBThread methods against running processes (PR #152020)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 4 13:04:29 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r HEAD~1...HEAD lldb/test/API/python_api/run_locker/TestRunLocker.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- TestRunLocker.py 2025-08-04 16:47:27.000000 +0000
+++ TestRunLocker.py 2025-08-04 20:04:02.034299 +0000
@@ -105,6 +105,8 @@
result = lldb.SBCommandReturnObject()
ret = interp.HandleCommand(
"script var = lldb.frame.EvaluateExpression('SomethingToCall()'); var.GetError().GetCString()",
result,
)
- self.assertIn("can't evaluate expressions when the process is running", result.GetOutput())
+ self.assertIn(
+ "can't evaluate expressions when the process is running", result.GetOutput()
+ )
``````````
</details>
https://github.com/llvm/llvm-project/pull/152020
More information about the lldb-commits
mailing list