[Lldb-commits] [lldb] [lldb][lldb-dap] Basic implementation of a deferred request. (PR #140260)

John Harrison via lldb-commits lldb-commits at lists.llvm.org
Fri May 16 08:44:48 PDT 2025


================
@@ -748,7 +748,7 @@ bool DAP::HandleObject(const Message &M) {
     dispatcher.Set("client_data",
                    llvm::Twine("request_command:", req->command).str());
     if (handler_pos != request_handlers.end()) {
-      handler_pos->second->Run(*req);
+      defer = handler_pos->second->Run(*req);
----------------
ashgti wrote:

Should we check the deferred call here like?

```cpp
if (handler_pos->second->DeferRequest())
  m_pending_queue.push_back(M);
else
  handler_pos->second->Run(*req);
```

https://github.com/llvm/llvm-project/pull/140260


More information about the lldb-commits mailing list