[Lldb-commits] [lldb] [lldb] Refactoring JSONTransport into an abstract RPC Message Handler and transport layer. (PR #153121)
John Harrison via lldb-commits
lldb-commits at lists.llvm.org
Wed Aug 13 15:19:33 PDT 2025
================
@@ -23,41 +24,59 @@ namespace lldb_protocol::mcp {
static llvm::StringLiteral kProtocolVersion = "2024-11-05";
+/// A Request or Response 'id'.
+using Id = std::variant<std::string, int64_t>;
+
/// A request that expects a response.
struct Request {
- uint64_t id = 0;
+ Id id; // Per the spec, this must be a string or number.
----------------
ashgti wrote:
Done, also moved these changes into #153297
https://github.com/llvm/llvm-project/pull/153121
More information about the lldb-commits
mailing list