|
LLDB mainline
|
#include <SBProcessInfo.h>
Public Member Functions | |
| SBProcessInfo () | |
| SBProcessInfo (const SBProcessInfo &rhs) | |
| ~SBProcessInfo () | |
| SBProcessInfo & | operator= (const SBProcessInfo &rhs) |
| operator bool () const | |
| bool | IsValid () const |
| const char * | GetName () |
| SBFileSpec | GetExecutableFile () |
| const char * | GetArg0 () |
| If the process was laumched with a first argument that doesn't match the executable file or name, this will return a valid string. | |
| lldb::pid_t | GetProcessID () |
| uint32_t | GetUserID () |
| uint32_t | GetGroupID () |
| bool | UserIDIsValid () |
| bool | GroupIDIsValid () |
| uint32_t | GetEffectiveUserID () |
| uint32_t | GetEffectiveGroupID () |
| bool | EffectiveUserIDIsValid () |
| bool | EffectiveGroupIDIsValid () |
| lldb::pid_t | GetParentProcessID () |
| const char * | GetTriple () |
| Return the target triple (arch-vendor-os) for the described process. | |
| uint32_t | GetNumArguments () const |
| Returns the number of command line arguments for the described process. | |
| const char * | GetArgumentAtIndex (uint32_t idx) const |
| Returns the command line argument at the given index, or nullptr if the index is out of range or if the process info is invalid. | |
Private Member Functions | |
| lldb_private::ProcessInstanceInfo & | ref () |
| void | SetProcessInfo (const lldb_private::ProcessInstanceInfo &proc_info_ref) |
Private Attributes | |
| std::unique_ptr< lldb_private::ProcessInstanceInfo > | m_opaque_up |
Friends | |
| class | SBProcess |
| class | SBProcessInfoList |
Definition at line 16 of file SBProcessInfo.h.
| SBProcessInfo::SBProcessInfo | ( | ) |
Definition at line 20 of file SBProcessInfo.cpp.
References LLDB_INSTRUMENT_VA.
Referenced by operator=(), SBProcessInfo(), and ~SBProcessInfo().
| SBProcessInfo::SBProcessInfo | ( | const SBProcessInfo & | rhs | ) |
Definition at line 22 of file SBProcessInfo.cpp.
References lldb_private::clone(), LLDB_INSTRUMENT_VA, m_opaque_up, and SBProcessInfo().
|
default |
References EffectiveGroupIDIsValid(), EffectiveUserIDIsValid(), GetArg0(), GetArgumentAtIndex(), GetEffectiveGroupID(), GetEffectiveUserID(), GetExecutableFile(), GetGroupID(), GetNumArguments(), GetParentProcessID(), GetProcessID(), GetTriple(), GetUserID(), GroupIDIsValid(), IsValid(), operator=(), SBProcessInfo(), and UserIDIsValid().
| bool SBProcessInfo::EffectiveGroupIDIsValid | ( | ) |
Definition at line 167 of file SBProcessInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by ~SBProcessInfo().
| bool SBProcessInfo::EffectiveUserIDIsValid | ( | ) |
Definition at line 157 of file SBProcessInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by ~SBProcessInfo().
| const char * SBProcessInfo::GetArg0 | ( | ) |
If the process was laumched with a first argument that doesn't match the executable file or name, this will return a valid string.
Definition at line 78 of file SBProcessInfo.cpp.
References lldb_private::StringPool::GetSystemPool(), lldb_private::StringPoolRef::Intern(), LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by ~SBProcessInfo().
| const char * SBProcessInfo::GetArgumentAtIndex | ( | uint32_t | idx | ) | const |
Returns the command line argument at the given index, or nullptr if the index is out of range or if the process info is invalid.
Definition at line 210 of file SBProcessInfo.cpp.
References lldb_private::Args::GetArgumentAtIndex(), lldb_private::StringPool::GetSystemPool(), lldb_private::StringPoolRef::Intern(), LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by ~SBProcessInfo().
| uint32_t SBProcessInfo::GetEffectiveGroupID | ( | ) |
Definition at line 147 of file SBProcessInfo.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_up, and UINT32_MAX.
Referenced by ~SBProcessInfo().
| uint32_t SBProcessInfo::GetEffectiveUserID | ( | ) |
Definition at line 137 of file SBProcessInfo.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_up, and UINT32_MAX.
Referenced by ~SBProcessInfo().
| SBFileSpec SBProcessInfo::GetExecutableFile | ( | ) |
Definition at line 68 of file SBProcessInfo.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_up, and lldb::SBFileSpec::SetFileSpec().
Referenced by ~SBProcessInfo().
| uint32_t SBProcessInfo::GetGroupID | ( | ) |
Definition at line 107 of file SBProcessInfo.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_up, and UINT32_MAX.
Referenced by ~SBProcessInfo().
| const char * SBProcessInfo::GetName | ( | ) |
Definition at line 59 of file SBProcessInfo.cpp.
References lldb_private::StringPool::GetSystemPool(), lldb_private::StringPoolRef::Intern(), LLDB_INSTRUMENT_VA, and m_opaque_up.
| uint32_t SBProcessInfo::GetNumArguments | ( | ) | const |
Returns the number of command line arguments for the described process.
Definition at line 200 of file SBProcessInfo.cpp.
References lldb_private::Args::GetArgumentCount(), LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by ~SBProcessInfo().
| lldb::pid_t SBProcessInfo::GetParentProcessID | ( | ) |
Definition at line 177 of file SBProcessInfo.cpp.
References LLDB_INSTRUMENT_VA, LLDB_INVALID_PROCESS_ID, and m_opaque_up.
Referenced by ~SBProcessInfo().
| lldb::pid_t SBProcessInfo::GetProcessID | ( | ) |
Definition at line 87 of file SBProcessInfo.cpp.
References LLDB_INSTRUMENT_VA, LLDB_INVALID_PROCESS_ID, and m_opaque_up.
Referenced by ~SBProcessInfo().
| const char * SBProcessInfo::GetTriple | ( | ) |
Return the target triple (arch-vendor-os) for the described process.
Definition at line 187 of file SBProcessInfo.cpp.
References lldb_private::StringPool::GetSystemPool(), lldb_private::StringPoolRef::Intern(), LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by ~SBProcessInfo().
| uint32_t SBProcessInfo::GetUserID | ( | ) |
Definition at line 97 of file SBProcessInfo.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_up, and UINT32_MAX.
Referenced by ~SBProcessInfo().
| bool SBProcessInfo::GroupIDIsValid | ( | ) |
Definition at line 127 of file SBProcessInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by ~SBProcessInfo().
| bool SBProcessInfo::IsValid | ( | ) | const |
Definition at line 49 of file SBProcessInfo.cpp.
References LLDB_INSTRUMENT_VA.
Referenced by ~SBProcessInfo().
|
explicit |
Definition at line 53 of file SBProcessInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
| SBProcessInfo & SBProcessInfo::operator= | ( | const SBProcessInfo & | rhs | ) |
Definition at line 30 of file SBProcessInfo.cpp.
References lldb_private::clone(), LLDB_INSTRUMENT_VA, m_opaque_up, and SBProcessInfo().
Referenced by ~SBProcessInfo().
|
private |
Definition at line 38 of file SBProcessInfo.cpp.
References m_opaque_up.
Referenced by SBProcessInfoList, and SetProcessInfo().
|
private |
Definition at line 45 of file SBProcessInfo.cpp.
References ref().
Referenced by lldb::SBProcess::GetProcessInfo(), lldb::SBProcessInfoList::GetProcessInfoAtIndex(), and SBProcessInfoList.
| bool SBProcessInfo::UserIDIsValid | ( | ) |
Definition at line 117 of file SBProcessInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by ~SBProcessInfo().
|
friend |
|
friend |
Definition at line 69 of file SBProcessInfo.h.
References ref(), SBProcessInfoList, and SetProcessInfo().
Referenced by SBProcessInfoList.
|
private |
Definition at line 75 of file SBProcessInfo.h.
Referenced by EffectiveGroupIDIsValid(), EffectiveUserIDIsValid(), GetArg0(), GetArgumentAtIndex(), GetEffectiveGroupID(), GetEffectiveUserID(), GetExecutableFile(), GetGroupID(), GetName(), GetNumArguments(), GetParentProcessID(), GetProcessID(), GetTriple(), GetUserID(), GroupIDIsValid(), operator bool(), operator=(), ref(), SBProcessInfo(), and UserIDIsValid().