34 ProcessLaunchInfo::operator=(rhs);
47 m_opaque_sp->GetFlags().Reset(eLaunchFlagDebug | eLaunchFlagDisableASLR);
124 bool add_as_first_arg) {
145 return m_opaque_sp->GetArguments().GetArgumentCount();
192 for (
auto &KV : refEnv)
193 m_opaque_sp->GetEnvironment().insert_or_assign(KV.first(), KV.second);
213 return m_opaque_sp->GetWorkingDirectory().GetPathAsConstString().AsCString();
243 return m_opaque_sp->SetProcessPluginName(plugin_name);
294 return m_opaque_sp->AppendDuplicateFileAction(fd, dup_fd);
307 return m_opaque_sp->AppendSuppressFileAction(fd, read, write);
339 if (!metadata_sp || !*metadata_sp)
344 ConstString class_name(metadata_sp->GetClassName().data());
352 metadata_sp ? metadata_sp->GetArgsSP() :
nullptr;
353 metadata_sp = std::make_shared<ScriptedMetadata>(class_name, dict_sp);
383 std::make_shared<StructuredData::Dictionary>(obj_sp);
388 llvm::StringRef class_name = metadata_sp ? metadata_sp->GetClassName() :
"";
389 metadata_sp = std::make_shared<ScriptedMetadata>(class_name, dict_sp);
#define LLDB_INSTRUMENT_VA(...)
lldb_private::Environment & ref() const
const lldb_private::FileSpec & ref() const
void SetWorkingDirectory(const char *working_dir)
const char * GetLaunchEventData() const
void SetShadowListener(SBListener &listener)
Set the shadow listener that will receive public process events, additionally to the default process ...
lldb::pid_t GetProcessID()
void SetProcessPluginName(const char *plugin_name)
uint32_t GetNumEnvironmentEntries()
void SetExecutableFile(SBFileSpec exe_file, bool add_as_first_arg)
Set the executable file that will be used to launch the process and optionally set it as the first ar...
lldb::SBStructuredData GetScriptedProcessDictionary() const
const char * GetScriptedProcessClassName() const
void set_ref(const lldb_private::ProcessLaunchInfo &info)
const char * GetProcessPluginName()
uint32_t GetLaunchFlags()
bool GetDetachOnError() const
bool AddCloseFileAction(int fd)
void SetScriptedProcessClassName(const char *class_name)
void SetUserID(uint32_t uid)
bool AddSuppressFileAction(int fd, bool read, bool write)
SBLaunchInfo & operator=(const SBLaunchInfo &rhs)
SBListener GetListener()
Get the listener that will be used to receive process events.
std::shared_ptr< lldb_private::SBLaunchInfoImpl > m_opaque_sp
void SetResumeCount(uint32_t c)
const char * GetEnvironmentEntryAtIndex(uint32_t idx)
void SetEnvironmentEntries(const char **envp, bool append)
Update this object with the given environment variables.
bool AddDuplicateFileAction(int fd, int dup_fd)
SBFileSpec GetExecutableFile()
void SetLaunchFlags(uint32_t flags)
void SetDetachOnError(bool enable)
uint32_t GetResumeCount()
SBEnvironment GetEnvironment()
Return the environment variables of this object.
void SetShell(const char *path)
void SetShellExpandArguments(bool expand)
bool AddOpenFileAction(int fd, const char *path, bool read, bool write)
SBLaunchInfo(const char **argv)
const char * GetArgumentAtIndex(uint32_t idx)
void SetLaunchEventData(const char *data)
uint32_t GetNumArguments()
SBListener GetShadowListener()
Get the shadow listener that receive public process events, additionally to the default process event...
bool GetShellExpandArguments()
void SetListener(SBListener &listener)
Set the listener that will be used to receive process events.
void SetScriptedProcessDictionary(lldb::SBStructuredData dict)
void SetEnvironment(const SBEnvironment &env, bool append)
Update this object with the given environment variables.
void SetGroupID(uint32_t gid)
const char * GetWorkingDirectory() const
const lldb_private::ProcessLaunchInfo & ref() const
void SetArguments(const char **argv, bool append)
StructuredDataImplUP m_impl_up
A uniqued constant string class.
const char * AsCString(const char *value_if_empty=nullptr) const
Get the string value as a C string.
const char * GetCString() const
Get the string value as a C string.
Environment & GetEnvironment()
SBLaunchInfoImpl & operator=(const ProcessLaunchInfo &rhs)
const char *const * GetEnvp() const
std::shared_ptr< Dictionary > DictionarySP
std::shared_ptr< Object > ObjectSP
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::ScriptedMetadata > ScriptedMetadataSP
std::shared_ptr< lldb_private::Listener > ListenerSP
@ eStructuredDataTypeInvalid