[Lldb-commits] [lldb] [lldb][lldb-dap] Migrate ScopesRequest to structured types (PR #138116)

John Harrison via lldb-commits lldb-commits at lists.llvm.org
Thu May 8 16:07:57 PDT 2025


================
@@ -294,6 +294,19 @@ bool fromJSON(const llvm::json::Value &, LaunchRequestArguments &,
 /// field is required.
 using LaunchResponseBody = VoidResponse;
 
+struct ScopesArguments {
+  /// Retrieve the scopes for the stack frame identified by `frameId`. The
+  /// `frameId` must have been obtained in the current suspended state. See
+  /// 'Lifetime of Object References' in the Overview section for details.
+  uint64_t frameId;
----------------
ashgti wrote:

Could we default this to a value like `UINT64_MAX` so we can use that as a hint for distinguishing an uninitialized `ScopesArguments args;` vs one we've parsed?

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


More information about the lldb-commits mailing list