================
@@ -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))
----------------
charles-zablit wrote:

In this patch, we consider that a `0,0` terminal size is valid. If the terminal 
size is 0,0 we use pipes rather than the ConPTY.

https://github.com/llvm/llvm-project/pull/203562
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to