[Lldb-commits] [lldb] [lldb][lldb-dap] use the new protocol for setVariable requests. (PR #137803)

John Harrison via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 29 14:03:28 PDT 2025


================
@@ -294,6 +294,75 @@ bool fromJSON(const llvm::json::Value &, LaunchRequestArguments &,
 /// field is required.
 using LaunchResponseBody = VoidResponse;
 
+/// Arguments for `setVariable` request.
+struct SetVariableArguments {
+  /// The reference of the variable container. The `variablesReference` must
+  /// have been obtained in the current suspended state. See 'Lifetime of Object
+  ///  References' in the Overview section for details.
+  uint64_t variablesReference;
----------------
ashgti wrote:

Should we set this to a default like `UINT64_MAX` to guard against missing values or uninitialized references?

https://github.com/llvm/llvm-project/pull/137803


More information about the lldb-commits mailing list