Skip to content

Commit 8a1c97f

Browse files
committed
Adjusting includes and when we call CancelInterruptRequest.
1 parent c6a9796 commit 8a1c97f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

lldb/tools/lldb-dap/DAP.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,10 @@ bool DAP::HandleObject(const Message &M) {
700700
{
701701
std::lock_guard<std::mutex> lock(m_active_request_mutex);
702702
m_active_request = req;
703+
704+
// Clear interrupt marker prior to handling the next request.
705+
if (debugger.InterruptRequested())
706+
debugger.CancelInterruptRequest();
703707
}
704708

705709
auto cleanup = llvm::make_scope_exit([&]() {
@@ -718,10 +722,6 @@ bool DAP::HandleObject(const Message &M) {
718722
}
719723
}
720724

721-
// Clear interrupt marker prior to handling the next request.
722-
if (debugger.InterruptRequested())
723-
debugger.CancelInterruptRequest();
724-
725725
auto handler_pos = request_handlers.find(req->command);
726726
if (handler_pos != request_handlers.end()) {
727727
(*handler_pos->second)(*req);

lldb/tools/lldb-dap/DAP.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
#include "llvm/Support/Error.h"
4040
#include "llvm/Support/JSON.h"
4141
#include "llvm/Support/Threading.h"
42+
#include <condition_variable>
4243
#include <cstdint>
44+
#include <deque>
4345
#include <memory>
4446
#include <mutex>
4547
#include <optional>

0 commit comments

Comments
 (0)