[Lldb-commits] [lldb] [lldb][Windows] use pipes when no terminal dimensions are sent (PR #203562)

via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 15 10:54:41 PDT 2026


================
@@ -991,7 +991,10 @@ GDBRemoteCommunicationServerCommon::Handle_QSetSTDIOWindowSize(
       continue;
     *dest = static_cast<uint16_t>(parsed);
   }
-  if (cols == 0 || rows == 0)
+  // 0x0 is a valid request: it signals "no terminal" and a redirection
+  // backend that supports an alternative path (anonymous pipes on Windows
+  // ConPTY) can switch on it. Reject only the malformed cases.
+  if ((cols == 0) != (rows == 0))
----------------
Nerixyz wrote:

Could you document this special case in `lldb/docs/resources/lldbgdbremote.md`?

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


More information about the lldb-commits mailing list