[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:27:21 PDT 2026
================
@@ -873,8 +877,18 @@ Status ProcessGDBRemote::DoLaunch(lldb_private::Module *exe_module,
SetPrivateState(SetThreadStopInfo(response));
if (!disable_stdio) {
- if (pty.GetPrimaryFileDescriptor() != PseudoTerminal::invalid_fd)
+ if (pty.GetPrimaryFileDescriptor() != PseudoTerminal::invalid_fd) {
SetSTDIOFileDescriptor(pty.ReleasePrimaryFileDescriptor());
+ }
+#ifdef _WIN32
+ else if (m_stdin_forward) {
+ // No client-side PTY FD on Windows.
+ std::lock_guard<std::mutex> guard(m_process_input_reader_mutex);
+ if (!m_process_input_reader)
+ m_process_input_reader =
+ std::make_shared<IOHandlerProcessSTDIOWindows>(this);
+ }
+#endif
----------------
Nerixyz wrote:
Ah, sorry, I thought this was in the constructor of the client.
https://github.com/llvm/llvm-project/pull/201638
More information about the lldb-commits
mailing list