[Lldb-commits] [lldb] [lldb-dap] Allow expressions in setVariable request (PR #185611)
Sergei Druzhkov via lldb-commits
lldb-commits at lists.llvm.org
Tue Mar 10 08:46:31 PDT 2026
DrSergei wrote:
> This looks like we need [setExpression](https://microsoft.github.io/debug-adapter-protocol//specification.html#Requests_SetExpression) instead of overloading set variable.
As I mentioned before `setExpression` is too general. We can't handle all possible `l-value` expressions in proper way. Another problem is that we should work with `evaluateName` instead of `variableReference`. For example, `evaluateName` for `std::unordered_map` element is `map._M_h._M_before_begin._M_nxt->[0].first`, which is not a valid expression in terms of `C/C++`.
https://github.com/llvm/llvm-project/pull/185611
More information about the lldb-commits
mailing list