[Lldb-commits] [lldb] [lldb][gdb-remote] Forward client terminal size to lldb-server (PR #201141)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Wed Jun 3 02:42:52 PDT 2026


================
@@ -1181,6 +1181,30 @@ These packets must be sent  _prior_ to sending a "A" packet.
 a target after making a connection to a GDB server that isn't already connected to
 an inferior process.
 
+## QSetSTDIOWindowSize:cols=\<N\>;rows=\<N\>
+
+Set the terminal window size for the inferior's stdio pseudo-terminal prior to
+sending an "A" packet.
+
+When launching a program that uses a pseudo-terminal (PTY) for stdio, this
+packet specifies the initial terminal dimensions:
+```
+QSetSTDIOWindowSize:cols=<N>;rows=<N>
+```
+Both `cols` and `rows` must be non-zero unsigned 16-bit integers. The packet
+must be sent _prior_ to sending an "A" packet. On the server side, the
----------------
DavidSpickett wrote:

Two points to make this clearer:
* Say "if the packet is sent, it must be sent....". So it doesn't seem like you have to use this packet.
* Add "Sending the packet after [some point] has no effect". So it doesn't seem like you have to send prior to A and then can or should send it again at unspecified points after.

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


More information about the lldb-commits mailing list