[Lldb-commits] [lldb] [lldb-dap] Adjust the evaluate test to use a different lldb command. (PR #116045)
John Harrison via lldb-commits
lldb-commits at lists.llvm.org
Wed Nov 13 05:52:39 PST 2024
================
@@ -101,9 +101,9 @@ def run_test_evaluate_expressions(
if context == "repl":
# In the repl context expressions may be interpreted as lldb
# commands since no variables have the same name as the command.
- self.assertEvaluate("var", r"\(lldb\) var\n.*")
+ self.assertEvaluate("list", r"\(lldb\) list\n.*")
else:
- self.assertEvaluateFailure("var") # local variable of a_function
+ self.assertEvaluateFailure("list") # local variable of a_function
----------------
ashgti wrote:
Its also worth noting that we're at breakpoint 1 here, which is in `main` (line 25), not `a_function` (breakpoint 3, line 12), so the variable `list` is out of scope.
https://github.com/llvm/llvm-project/pull/116045
More information about the lldb-commits
mailing list