diff options
author | Sergei Druzhkov <serzhdruzhok@gmail.com> | 2025-10-15 23:46:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-15 23:46:07 +0300 |
commit | 995eb4ca2ee15daffcc5a20121de955a0e2ca023 (patch) | |
tree | b7bd0571117529a420ebc6719d076775285dc2ea /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 6a0416af54639cdac5b134b7d4f060908892428b (diff) | |
download | llvm-995eb4ca2ee15daffcc5a20121de955a0e2ca023.zip llvm-995eb4ca2ee15daffcc5a20121de955a0e2ca023.tar.gz llvm-995eb4ca2ee15daffcc5a20121de955a0e2ca023.tar.bz2 |
[lldb-dap] Add readOnly attribute for variables (#151884)
This patch adds `readOnly`
[attribute](https://microsoft.github.io/debug-adapter-protocol/specification#Types_VariablePresentationHint)
for variables. When this attribute is returned for a variable, VS Code
prevents editing (and grays out the `Set Value` button). Without this,
users might be confused if the UI allows edits but the debug adapter
often returns an error. I checked `SetValueFromCString` function
implementation and found that it doesn't support aggregate data types,
so I added simple check for them. Also, I found that I can update value
of registers sets (but without any effects). So I also added checks for
those as well.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions