diff --git a/lldb/tools/lldb-dap/Protocol/ProtocolEvents.cpp b/lldb/tools/lldb-dap/Protocol/ProtocolEvents.cpp index 9598c69878d66..062b9494ec10f 100644 --- a/lldb/tools/lldb-dap/Protocol/ProtocolEvents.cpp +++ b/lldb/tools/lldb-dap/Protocol/ProtocolEvents.cpp @@ -51,8 +51,8 @@ llvm::json::Value toJSON(const InvalidatedEventBody &IEB) { json::Object Result{{"areas", IEB.areas}}; if (IEB.threadId) Result.insert({"threadID", IEB.threadId}); - if (IEB.frameId) - Result.insert({"frameId", IEB.frameId}); + if (IEB.stackFrameId) + Result.insert({"stackFrameId", IEB.stackFrameId}); return Result; } diff --git a/lldb/tools/lldb-dap/Protocol/ProtocolEvents.h b/lldb/tools/lldb-dap/Protocol/ProtocolEvents.h index 138b622e01210..cb976d3395217 100644 --- a/lldb/tools/lldb-dap/Protocol/ProtocolEvents.h +++ b/lldb/tools/lldb-dap/Protocol/ProtocolEvents.h @@ -83,7 +83,7 @@ struct InvalidatedEventBody { /// If specified, the client only needs to refetch data related to this stack /// frame (and the `threadId` is ignored). - std::optional frameId; + std::optional stackFrameId; }; llvm::json::Value toJSON(const InvalidatedEventBody::Area &); llvm::json::Value toJSON(const InvalidatedEventBody &); diff --git a/lldb/unittests/DAP/ProtocolTypesTest.cpp b/lldb/unittests/DAP/ProtocolTypesTest.cpp index a964592495347..61d197a705e0e 100644 --- a/lldb/unittests/DAP/ProtocolTypesTest.cpp +++ b/lldb/unittests/DAP/ProtocolTypesTest.cpp @@ -1078,13 +1078,13 @@ TEST(ProtocolTypesTest, InvalidatedEventBody) { InvalidatedEventBody body; body.areas = {InvalidatedEventBody::eAreaStacks, InvalidatedEventBody::eAreaThreads}; - body.frameId = 1; + body.stackFrameId = 1; StringRef json = R"({ "areas": [ "stacks", "threads" ], - "frameId": 1 + "stackFrameId": 1 })"; EXPECT_EQ(json, pp(body)); }