[Lldb-commits] [lldb] [lldb][Windows] add stdin support to lldb-server (PR #201638)

via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 8 09:32:41 PDT 2026


================
@@ -2569,12 +2569,19 @@ GDBRemoteCommunicationServerLLGS::Handle_I(StringExtractorGDBRemote &packet) {
     // write directly to stdin *this might block if stdin buffer is full*
     // TODO: enqueue this block in circular buffer and send window size to
     // remote host
-    ConnectionStatus status;
     Status error;
+
+#if defined(_WIN32)
+    // On Windows the inferior's stdio is owned by NativeProcessWindows.
----------------
Nerixyz wrote:

`NativeProcessWindows::WriteStdin` calls `m_stdio_communication.Write` internally. If I understand correctly, then we can't use `m_stdio_communication`, because that's not the same as `m_current_process->m_stdio_communication`.

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


More information about the lldb-commits mailing list