aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api
diff options
context:
space:
mode:
authoroltolm <oleg.tolmatcev@gmail.com>2025-02-25 00:52:09 +0100
committerGitHub <noreply@github.com>2025-02-24 17:52:09 -0600
commitccbb8882ac75e73e23f31ad60588a2914ebeef04 (patch)
tree4a55a8a6c3ccf49c52ae4c97848f77d9495d4548 /lldb/test/API/python_api
parentfc09550bf4982253a93088bf1668f7a917584464 (diff)
downloadllvm-ccbb8882ac75e73e23f31ad60588a2914ebeef04.zip
llvm-ccbb8882ac75e73e23f31ad60588a2914ebeef04.tar.gz
llvm-ccbb8882ac75e73e23f31ad60588a2914ebeef04.tar.bz2
[lldb] do not show misleading error when there is no frame (#119103)
I am using VSCode with the official vscode-lldb extension. When I try to list the breakpoints in the debug console get the message: ``` br list can't evaluate expressions when the process is running. ``` I know that this is wrong and you need to use ``` `br list (lldb) br list No breakpoints currently set. ``` but the error message is misleading. I cleaned up the code and now the error message is ``` br list sbframe object is not valid. ``` which is still not perfect, but at least it's not misleading.
Diffstat (limited to 'lldb/test/API/python_api')
-rw-r--r--lldb/test/API/python_api/run_locker/TestRunLocker.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/lldb/test/API/python_api/run_locker/TestRunLocker.py b/lldb/test/API/python_api/run_locker/TestRunLocker.py
index d525bbf..b7b4941 100644
--- a/lldb/test/API/python_api/run_locker/TestRunLocker.py
+++ b/lldb/test/API/python_api/run_locker/TestRunLocker.py
@@ -107,6 +107,4 @@ class TestRunLocker(TestBase):
"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("sbframe object is not valid", result.GetOutput())