Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions lldb/include/lldb/Target/Process.h
Original file line number Diff line number Diff line change
Expand Up @@ -2534,6 +2534,28 @@ void PruneThreadPlans();

void CalculateExecutionContext(ExecutionContext &exe_ctx) override;

/// Associates a file descriptor with the process' STDIO handling
/// and configures an asynchronous reading of that descriptor.
///
/// This method installs a ConnectionFileDescriptor for the passed file
/// descriptor and starts a dedicated read thread. If the read thread starts
/// successfully, the method also ensures that an IOHandlerProcessSTDIO is
/// created to manage user input to the process.
///
/// The descriptor's ownership is transferred to the underlying
/// ConnectionFileDescriptor.
///
/// When data is successfully read from the file descriptor, it is stored in
/// m_stdout_data. There is no differentiation between stdout and stderr.
///
/// \param[in] fd
/// The file descriptor to use for process STDIO communication. It's
/// assumed to be valid and will be managed by the newly created
/// connection.
///
/// \see lldb_private::Process::STDIOReadThreadBytesReceived()
/// \see lldb_private::IOHandlerProcessSTDIO
/// \see lldb_private::ConnectionFileDescriptor
void SetSTDIOFileDescriptor(int file_descriptor);

// Add a permanent region of memory that should never be read or written to.
Expand Down
Loading