File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff 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);
Original file line number Diff line number Diff line change 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>
You can’t perform that action at this time.
0 commit comments