LLDB mainline
lldb_private::PseudoConsole Class Reference

#include <PseudoConsole.h>

Public Member Functions

llvm::Error OpenPseudoConsole ()
void Close ()
 Close the ConPTY, its read/write handles and invalidate them.
HPCON GetPseudoTerminalHandle ()
 The ConPTY HPCON handle accessor.
HANDLE GetSTDOUTHandle () const
 The STDOUT read HANDLE accessor.
HANDLE GetSTDINHandle () const
 The STDIN write HANDLE accessor.

Protected Attributes

HANDLE m_conpty_handle = ((HANDLE)(long long)-1)
HANDLE m_conpty_output = ((HANDLE)(long long)-1)
HANDLE m_conpty_input = ((HANDLE)(long long)-1)

Detailed Description

Definition at line 21 of file PseudoConsole.h.

Member Function Documentation

◆ Close()

void PseudoConsole::Close ( )

Close the ConPTY, its read/write handles and invalidate them.

Definition at line 118 of file PseudoConsole.cpp.

References kernel32, m_conpty_handle, m_conpty_input, and m_conpty_output.

◆ GetPseudoTerminalHandle()

HPCON lldb_private::PseudoConsole::GetPseudoTerminalHandle ( )
inline

The ConPTY HPCON handle accessor.

This object retains ownership of the HPCON when this accessor is used.

Returns
The ConPTY HPCON handle, or INVALID_HANDLE_VALUE if it is currently invalid.

Definition at line 36 of file PseudoConsole.h.

References m_conpty_handle.

◆ GetSTDINHandle()

HANDLE lldb_private::PseudoConsole::GetSTDINHandle ( ) const
inline

The STDIN write HANDLE accessor.

This object retains ownership of the HANDLE when this accessor is used.

Returns
The STDIN write HANDLE, or INVALID_HANDLE_VALUE if it is currently invalid.

Definition at line 54 of file PseudoConsole.h.

References m_conpty_input.

◆ GetSTDOUTHandle()

HANDLE lldb_private::PseudoConsole::GetSTDOUTHandle ( ) const
inline

The STDOUT read HANDLE accessor.

This object retains ownership of the HANDLE when this accessor is used.

Returns
The STDOUT read HANDLE, or INVALID_HANDLE_VALUE if it is currently invalid.

Definition at line 45 of file PseudoConsole.h.

References m_conpty_output.

◆ OpenPseudoConsole()

llvm::Error PseudoConsole::OpenPseudoConsole ( )

Definition at line 67 of file PseudoConsole.cpp.

References kernel32, m_conpty_handle, m_conpty_input, and m_conpty_output.

Member Data Documentation

◆ m_conpty_handle

HANDLE lldb_private::PseudoConsole::m_conpty_handle = ((HANDLE)(long long)-1)
protected

Definition at line 57 of file PseudoConsole.h.

Referenced by Close(), GetPseudoTerminalHandle(), and OpenPseudoConsole().

◆ m_conpty_input

HANDLE lldb_private::PseudoConsole::m_conpty_input = ((HANDLE)(long long)-1)
protected

Definition at line 59 of file PseudoConsole.h.

Referenced by Close(), GetSTDINHandle(), and OpenPseudoConsole().

◆ m_conpty_output

HANDLE lldb_private::PseudoConsole::m_conpty_output = ((HANDLE)(long long)-1)
protected

Definition at line 58 of file PseudoConsole.h.

Referenced by Close(), GetSTDOUTHandle(), and OpenPseudoConsole().


The documentation for this class was generated from the following files: