[Lldb-commits] [lldb] [lldb-dap] Add invalidated event (PR #157530)

John Harrison via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 9 09:57:23 PDT 2025


================
@@ -91,8 +94,13 @@ WriteMemoryRequestHandler::Run(
   if (bytes_written == 0) {
     return llvm::make_error<DAPError>(write_error.GetCString());
   }
-  protocol::WriteMemoryResponseBody response;
+  WriteMemoryResponseBody response;
   response.bytesWritten = bytes_written;
+
+  // Also send invalidated event to signal client that some things
+  // (e.g. variables) can be changed.
+  SendInvalidatedEvent(dap, {InvalidatedEventBody::eAreaAll});
----------------
ashgti wrote:

Does this change everything? Or just variables? I am not sure if writing into memory like this prevents changing the current stack or PC counter or not.

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


More information about the lldb-commits mailing list