LLDB mainline
|
#include <FileAction.h>
Public Types | |
enum | Action { eFileActionNone , eFileActionClose , eFileActionDuplicate , eFileActionOpen } |
Public Member Functions | |
FileAction () | |
void | Clear () |
bool | Close (int fd) |
bool | Duplicate (int fd, int dup_fd) |
bool | Open (int fd, const FileSpec &file_spec, bool read, bool write) |
int | GetFD () const |
Action | GetAction () const |
int | GetActionArgument () const |
llvm::StringRef | GetPath () const |
const FileSpec & | GetFileSpec () const |
void | Dump (Stream &stream) const |
Protected Attributes | |
Action | m_action = eFileActionNone |
int | m_fd = -1 |
int | m_arg = -1 |
FileSpec | m_file_spec |
Definition at line 17 of file FileAction.h.
Enumerator | |
---|---|
eFileActionNone | |
eFileActionClose | |
eFileActionDuplicate | |
eFileActionOpen |
Definition at line 19 of file FileAction.h.
FileAction::FileAction | ( | ) |
Definition at line 19 of file FileAction.cpp.
void FileAction::Clear | ( | ) |
Definition at line 21 of file FileAction.cpp.
References lldb_private::FileSpec::Clear(), eFileActionNone, m_action, m_arg, m_fd, and m_file_spec.
Referenced by Close(), Duplicate(), and Open().
bool FileAction::Close | ( | int | fd | ) |
Definition at line 53 of file FileAction.cpp.
References Clear(), eFileActionClose, m_action, and m_fd.
Referenced by lldb_private::ProcessLaunchInfo::AppendCloseFileAction().
void FileAction::Dump | ( | Stream & | stream | ) | const |
Definition at line 72 of file FileAction.cpp.
References eFileActionClose, eFileActionDuplicate, eFileActionNone, eFileActionOpen, lldb_private::FileSpec::GetPath(), m_action, m_arg, m_fd, m_file_spec, lldb_private::Stream::Printf(), and lldb_private::Stream::PutCString().
Referenced by PlatformPOSIX::DebugProcess().
bool FileAction::Duplicate | ( | int | fd, |
int | dup_fd | ||
) |
Definition at line 62 of file FileAction.cpp.
References Clear(), eFileActionDuplicate, m_action, m_arg, and m_fd.
Referenced by lldb_private::ProcessLaunchInfo::AppendDuplicateFileAction().
|
inline |
Definition at line 38 of file FileAction.h.
References m_action.
Referenced by AddPosixSpawnFileAction(), lldb_private::process_gdb_remote::ProcessGDBRemote::DoLaunch(), and HandleFileAction().
|
inline |
Definition at line 40 of file FileAction.h.
References m_arg.
Referenced by AddPosixSpawnFileAction(), and HandleFileAction().
|
inline |
Definition at line 36 of file FileAction.h.
References m_fd.
Referenced by AddPosixSpawnFileAction().
const FileSpec & FileAction::GetFileSpec | ( | ) | const |
Definition at line 32 of file FileAction.cpp.
References m_file_spec.
Referenced by lldb_private::process_gdb_remote::ProcessGDBRemote::DoLaunch(), and HandleFileAction().
llvm::StringRef FileAction::GetPath | ( | ) | const |
Definition at line 28 of file FileAction.cpp.
References lldb_private::ConstString::AsCString(), lldb_private::FileSpec::GetPathAsConstString(), and m_file_spec.
Referenced by AddPosixSpawnFileAction(), lldb_private::ProcessLauncherWindows::GetStdioHandle(), LaunchProcessXPC(), and lldb_private::TargetProperties::SetProcessLaunchInfo().
bool FileAction::Open | ( | int | fd, |
const FileSpec & | file_spec, | ||
bool | read, | ||
bool | write | ||
) |
Definition at line 34 of file FileAction.cpp.
References Clear(), eFileActionOpen, m_action, m_arg, m_fd, m_file_spec, and O_NOCTTY.
Referenced by lldb_private::ProcessLaunchInfo::AppendOpenFileAction(), lldb_private::ProcessLaunchInfo::AppendSuppressFileAction(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServerCommon::Handle_QSetSTDERR(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServerCommon::Handle_QSetSTDIN(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServerCommon::Handle_QSetSTDOUT(), lldb_private::ProcessLaunchInfo::ProcessLaunchInfo(), and lldb_private::CommandOptionsProcessLaunch::SetOptionValue().
|
protected |
Definition at line 49 of file FileAction.h.
Referenced by Clear(), Close(), Dump(), Duplicate(), GetAction(), and Open().
|
protected |
Definition at line 51 of file FileAction.h.
Referenced by Clear(), Dump(), Duplicate(), GetActionArgument(), and Open().
|
protected |
Definition at line 50 of file FileAction.h.
Referenced by Clear(), Close(), Dump(), Duplicate(), GetFD(), and Open().
|
protected |
Definition at line 53 of file FileAction.h.
Referenced by Clear(), Dump(), GetFileSpec(), GetPath(), and Open().