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

Druzhkov Sergei via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 9 12:07:32 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});
----------------
DrSergei wrote:

I think we can change return address on stack using `writeMemory` request

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


More information about the lldb-commits mailing list