LLDB mainline
lldb_private::ProcessInfo Class Reference

#include <ProcessInfo.h>

Inheritance diagram for lldb_private::ProcessInfo:
[legend]

Public Member Functions

 ProcessInfo ()
 ProcessInfo (const char *name, const ArchSpec &arch, lldb::pid_t pid)
void Clear ()
const char * GetName () const
llvm::StringRef GetNameAsStringRef () const
FileSpecGetExecutableFile ()
void SetExecutableFile (const FileSpec &exe_file, bool add_exe_file_as_first_arg)
const FileSpecGetExecutableFile () const
uint32_t GetUserID () const
uint32_t GetGroupID () const
bool UserIDIsValid () const
bool GroupIDIsValid () const
void SetUserID (uint32_t uid)
void SetGroupID (uint32_t gid)
ArchSpecGetArchitecture ()
const ArchSpecGetArchitecture () const
void SetArchitecture (const ArchSpec &arch)
lldb::pid_t GetProcessID () const
void SetProcessID (lldb::pid_t pid)
bool ProcessIDIsValid () const
void Dump (Stream &s, Platform *platform) const
ArgsGetArguments ()
const ArgsGetArguments () const
llvm::StringRef GetArg0 () const
void SetArg0 (llvm::StringRef arg)
void SetArguments (const Args &args, bool first_arg_is_executable)
void SetArguments (char const **argv, bool first_arg_is_executable)
EnvironmentGetEnvironment ()
const EnvironmentGetEnvironment () const
bool IsScriptedProcess () const
lldb::ScriptedMetadataSP GetScriptedMetadata () const
void SetScriptedMetadata (lldb::ScriptedMetadataSP metadata_sp)
lldb::ListenerSP GetListener () const
void SetListener (const lldb::ListenerSP &listener_sp)
lldb::ListenerSP GetHijackListener () const
void SetHijackListener (const lldb::ListenerSP &listener_sp)
lldb::ListenerSP GetShadowListener () const
void SetShadowListener (const lldb::ListenerSP &listener_sp)

Protected Attributes

FileSpec m_executable
std::string m_arg0
Args m_arguments
Environment m_environment
uint32_t m_uid = UINT32_MAX
uint32_t m_gid = UINT32_MAX
ArchSpec m_arch
lldb::pid_t m_pid = LLDB_INVALID_PROCESS_ID
lldb::ScriptedMetadataSP m_scripted_metadata_sp = nullptr
lldb::ListenerSP m_listener_sp = nullptr
lldb::ListenerSP m_hijack_listener_sp = nullptr
lldb::ListenerSP m_shadow_listener_sp = nullptr

Detailed Description

Definition at line 31 of file ProcessInfo.h.

Constructor & Destructor Documentation

◆ ProcessInfo() [1/2]

◆ ProcessInfo() [2/2]

ProcessInfo::ProcessInfo ( const char * name,
const ArchSpec & arch,
lldb::pid_t pid )

Member Function Documentation

◆ Clear()

◆ Dump()

◆ GetArchitecture() [1/2]

◆ GetArchitecture() [2/2]

const ArchSpec & lldb_private::ProcessInfo::GetArchitecture ( ) const
inline

Definition at line 64 of file ProcessInfo.h.

References m_arch.

◆ GetArg0()

◆ GetArguments() [1/2]

◆ GetArguments() [2/2]

const Args & lldb_private::ProcessInfo::GetArguments ( ) const
inline

Definition at line 78 of file ProcessInfo.h.

References m_arguments.

◆ GetEnvironment() [1/2]

◆ GetEnvironment() [2/2]

const Environment & lldb_private::ProcessInfo::GetEnvironment ( ) const
inline

Definition at line 89 of file ProcessInfo.h.

References m_environment.

◆ GetExecutableFile() [1/2]

FileSpec & lldb_private::ProcessInfo::GetExecutableFile ( )
inline

◆ GetExecutableFile() [2/2]

const FileSpec & lldb_private::ProcessInfo::GetExecutableFile ( ) const
inline

Definition at line 48 of file ProcessInfo.h.

References m_executable.

◆ GetGroupID()

◆ GetHijackListener()

◆ GetListener()

◆ GetName()

◆ GetNameAsStringRef()

llvm::StringRef ProcessInfo::GetNameAsStringRef ( ) const

Definition at line 49 of file ProcessInfo.cpp.

References m_executable.

Referenced by ELFLinuxPrPsInfo::Populate().

◆ GetProcessID()

lldb::pid_t lldb_private::ProcessInfo::GetProcessID ( ) const
inline

◆ GetScriptedMetadata()

lldb::ScriptedMetadataSP lldb_private::ProcessInfo::GetScriptedMetadata ( ) const
inline

◆ GetShadowListener()

◆ GetUserID()

◆ GroupIDIsValid()

◆ IsScriptedProcess()

◆ ProcessIDIsValid()

◆ SetArchitecture()

◆ SetArg0()

void ProcessInfo::SetArg0 ( llvm::StringRef arg)

◆ SetArguments() [1/2]

void ProcessInfo::SetArguments ( char const ** argv,
bool first_arg_is_executable )

Definition at line 84 of file ProcessInfo.cpp.

References m_arguments, and m_executable.

◆ SetArguments() [2/2]

void ProcessInfo::SetArguments ( const Args & args,
bool first_arg_is_executable )

◆ SetExecutableFile()

◆ SetGroupID()

◆ SetHijackListener()

void lldb_private::ProcessInfo::SetHijackListener ( const lldb::ListenerSP & listener_sp)
inline

◆ SetListener()

void lldb_private::ProcessInfo::SetListener ( const lldb::ListenerSP & listener_sp)
inline

◆ SetProcessID()

◆ SetScriptedMetadata()

void lldb_private::ProcessInfo::SetScriptedMetadata ( lldb::ScriptedMetadataSP metadata_sp)
inline

Definition at line 97 of file ProcessInfo.h.

References m_scripted_metadata_sp.

Referenced by lldb_private::Target::SaveScriptedLaunchInfo().

◆ SetShadowListener()

void lldb_private::ProcessInfo::SetShadowListener ( const lldb::ListenerSP & listener_sp)
inline

Definition at line 116 of file ProcessInfo.h.

References m_shadow_listener_sp.

◆ SetUserID()

◆ UserIDIsValid()

Member Data Documentation

◆ m_arch

◆ m_arg0

std::string lldb_private::ProcessInfo::m_arg0
protected

◆ m_arguments

◆ m_environment

Environment lldb_private::ProcessInfo::m_environment
protected

◆ m_executable

◆ m_gid

uint32_t lldb_private::ProcessInfo::m_gid = UINT32_MAX
protected

Definition at line 128 of file ProcessInfo.h.

Referenced by Clear(), GetGroupID(), GroupIDIsValid(), and SetGroupID().

◆ m_hijack_listener_sp

lldb::ListenerSP lldb_private::ProcessInfo::m_hijack_listener_sp = nullptr
protected

◆ m_listener_sp

lldb::ListenerSP lldb_private::ProcessInfo::m_listener_sp = nullptr
protected

◆ m_pid

◆ m_scripted_metadata_sp

lldb::ScriptedMetadataSP lldb_private::ProcessInfo::m_scripted_metadata_sp = nullptr
protected

Definition at line 131 of file ProcessInfo.h.

Referenced by Clear(), GetScriptedMetadata(), IsScriptedProcess(), and SetScriptedMetadata().

◆ m_shadow_listener_sp

lldb::ListenerSP lldb_private::ProcessInfo::m_shadow_listener_sp = nullptr
protected

Definition at line 134 of file ProcessInfo.h.

Referenced by GetShadowListener(), ProcessInfo(), ProcessInfo(), and SetShadowListener().

◆ m_uid

uint32_t lldb_private::ProcessInfo::m_uid = UINT32_MAX
protected

Definition at line 127 of file ProcessInfo.h.

Referenced by Clear(), GetUserID(), SetUserID(), and UserIDIsValid().


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