[Lldb-commits] [lldb] [lldb][Windows] use pipes when no terminal dimensions are sent (PR #203562)
Charles Zablit via lldb-commits
lldb-commits at lists.llvm.org
Fri Jun 12 08:25:03 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))
----------------
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
More information about the lldb-commits
mailing list