================
@@ -671,11 +693,25 @@ void DAP::SetTarget(const lldb::SBTarget target) {
   }
 }
 
-bool DAP::HandleObject(const protocol::Message &M) {
-  if (const auto *req = std::get_if<protocol::Request>(&M)) {
+bool DAP::HandleObject(const Message &M) {
+  if (const auto *req = std::get_if<Request>(&M)) {
+    {
+      std::lock_guard<std::mutex> lock(m_active_request_mutex);
+      m_active_request = req;
+
+      // Clear interrupt marker prior to handling the next request.
+      if (debugger.InterruptRequested())
+        debugger.CancelInterruptRequest();
----------------
ashgti wrote:

Done, we still have this check, but it should be cleared sooner in `Send` as 
well.

https://github.com/llvm/llvm-project/pull/130169
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to