[Lldb-commits] [lldb] [lldb-dap] Refactoring IOStream into Transport handler. (PR #130026)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 11 01:30:05 PDT 2025


================
@@ -838,19 +770,12 @@ llvm::Error DAP::Loop() {
     StopEventHandlers();
   });
   while (!disconnecting) {
-    llvm::json::Object object;
-    lldb_dap::PacketStatus status = GetNextObject(object);
-
-    if (status == lldb_dap::PacketStatus::EndOfFile) {
+    std::optional<protocol::Message> next = transport.Read();
+    if (!next) {
       break;
     }
----------------
labath wrote:

```suggestion
    if (!next)
      break;
```

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


More information about the lldb-commits mailing list