Go to the documentation of this file.
9 #ifndef LLDB_HOST_PROCESSLAUNCHINFO_H
10 #define LLDB_HOST_PROCESSLAUNCHINFO_H
85 return m_flags.
Test(lldb::eLaunchFlagLaunchInSeparateProcessGroup);
91 return m_flags.
Test(lldb::eLaunchFlagShellExpandArguments);
99 bool first_arg_is_full_shell_command,
144 return m_flags.
Test(lldb::eLaunchFlagDetachOnError);
175 std::shared_ptr<PseudoTerminal>
m_pty;
190 #endif // LLDB_HOST_PROCESSLAUNCHINFO_H
bool GetDetachOnError() const
static bool separate(size_t count)
bool AppendDuplicateFileAction(int fd, int dup_fd)
std::shared_ptr< PseudoTerminal > m_pty
void SetWorkingDirectory(const FileSpec &working_dir)
void SetShell(const FileSpec &shell)
void SetListener(const lldb::ListenerSP &listener_sp)
bool IsScriptedProcess() const
void SetScriptedProcessDictionarySP(lldb_private::StructuredData::DictionarySP dictionary_sp)
std::string m_scripted_process_class_name
const FileAction * GetFileActionForFD(int fd) const
bool Test(ValueType bit) const
Test a single flag bit.
void SetShellExpandArguments(bool expand)
static void NoOpMonitorCallback(lldb::pid_t pid, int signal, int status)
A Monitor callback which does not take any action on process events.
void SetHijackListener(const lldb::ListenerSP &listener_sp)
void AppendFileAction(const FileAction &info)
bool AppendCloseFileAction(int fd)
std::function< void(lldb::pid_t pid, int signal, int status)> MonitorChildProcessCallback
bool AppendSuppressFileAction(int fd, bool read, bool write)
static llvm::raw_ostream & error(Stream &strm)
Host::MonitorChildProcessCallback m_monitor_callback
std::string GetScriptedProcessClassName() const
void SetDetachOnError(bool enable)
lldb_private::StructuredData::DictionarySP GetScriptedProcessDictionarySP() const
void SetProcessPluginName(llvm::StringRef plugin)
bool GetShellExpandArguments() const
llvm::Error SetUpPtyRedirection()
const FileAction * GetFileActionAtIndex(size_t idx) const
lldb::ListenerSP GetListener() const
std::shared_ptr< Dictionary > DictionarySP
StructuredData::DictionarySP m_scripted_process_dictionary_sp
size_t GetNumFileActions() const
string(SUBSTRING ${p} 10 -1 pStripped) if($
const FileSpec & GetWorkingDirectory() const
void SetLaunchInSeparateProcessGroup(bool separate)
PseudoTerminal & GetPTY()
const char * GetLaunchEventData() const
const char * GetProcessPluginName() const
void SetScriptedProcessClassName(std::string name)
uint32_t GetResumeCount() const
const FileSpec & GetShell() const
lldb::ListenerSP m_hijack_listener_sp
lldb::ListenerSP GetHijackListener() const
bool AppendOpenFileAction(int fd, const FileSpec &file_spec, bool read, bool write)
A class that represents a running process on the host machine.
bool MonitorProcess() const
void SetResumeCount(uint32_t c)
bool GetLaunchInSeparateProcessGroup() const
std::string m_plugin_name
std::vector< FileAction > m_file_actions
const Flags & GetFlags() const
void SetLaunchEventData(const char *data)
void SetMonitorProcessCallback(Host::MonitorChildProcessCallback callback)
bool ConvertArgumentsForLaunchingInShell(Status &error, bool will_debug, bool first_arg_is_full_shell_command, uint32_t num_resumes)
lldb::ListenerSP m_listener_sp
const Host::MonitorChildProcessCallback & GetMonitorProcessCallback() const