[Lldb-commits] [lldb] [lldb-dap] Adding support for cancelling a request. (PR #130169)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Thu Mar 20 10:47:46 PDT 2025
================
@@ -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
More information about the lldb-commits
mailing list