diff options
Diffstat (limited to 'lldb/tools/lldb-dap/EventHelper.cpp')
-rw-r--r-- | lldb/tools/lldb-dap/EventHelper.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lldb/tools/lldb-dap/EventHelper.cpp b/lldb/tools/lldb-dap/EventHelper.cpp index 2b9ed22..3042d32 100644 --- a/lldb/tools/lldb-dap/EventHelper.cpp +++ b/lldb/tools/lldb-dap/EventHelper.cpp @@ -276,11 +276,16 @@ void SendProcessExitedEvent(DAP &dap, lldb::SBProcess &process) { } void SendInvalidatedEvent( - DAP &dap, llvm::ArrayRef<protocol::InvalidatedEventBody::Area> areas) { + DAP &dap, llvm::ArrayRef<protocol::InvalidatedEventBody::Area> areas, + lldb::tid_t tid) { if (!dap.clientFeatures.contains(protocol::eClientFeatureInvalidatedEvent)) return; protocol::InvalidatedEventBody body; body.areas = areas; + + if (tid != LLDB_INVALID_THREAD_ID) + body.threadId = tid; + dap.Send(protocol::Event{"invalidated", std::move(body)}); } |