================ @@ -240,6 +242,21 @@ void DAP::SendJSON(const llvm::json::Value &json) { } void DAP::Send(const protocol::Message &message) { + if (auto *resp = std::get_if<protocol::Response>(&message); + resp && debugger.InterruptRequested()) { + // If the debugger was interrupted, convert this response into a 'cancelled' + // response. ---------------- JDevlieghere wrote:
```suggestion // If the debugger was interrupted, convert this response into a 'cancelled' // response because we might have a partial result. ``` 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