[Lldb-commits] [lldb] [lldb][Windows] add stdin support to lldb-server (PR #201638)
Charles Zablit via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 8 04:55:20 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
----------------
charles-zablit wrote:
It would yes. It should not be a problem because if we connect to a non-Windows system that does support file descriptors, another `Process*` implementation will run.
https://github.com/llvm/llvm-project/pull/201638
More information about the lldb-commits
mailing list