LLDB mainline
|
#include <ProcessInfo.h>
Public Member Functions | |
ProcessInstanceInfoMatch ()=default | |
ProcessInstanceInfoMatch (const char *process_name, NameMatch process_name_match_type) | |
ProcessInstanceInfo & | GetProcessInfo () |
const ProcessInstanceInfo & | GetProcessInfo () const |
bool | GetMatchAllUsers () const |
void | SetMatchAllUsers (bool b) |
NameMatch | GetNameMatchType () const |
void | SetNameMatchType (NameMatch name_match_type) |
bool | ArchitectureMatches (const ArchSpec &arch_spec) const |
Return true iff the architecture in this object matches arch_spec. | |
bool | NameMatches (const char *process_name) const |
Return true iff the process name in this object matches process_name. | |
bool | ProcessIDsMatch (const ProcessInstanceInfo &proc_info) const |
Return true iff the process ID and parent process IDs in this object match the ones in proc_info. | |
bool | UserIDsMatch (const ProcessInstanceInfo &proc_info) const |
Return true iff the (both effective and real) user and group IDs in this object match the ones in proc_info. | |
bool | Matches (const ProcessInstanceInfo &proc_info) const |
bool | MatchAllProcesses () const |
void | Clear () |
Protected Attributes | |
ProcessInstanceInfo | m_match_info |
NameMatch | m_name_match_type = NameMatch::Ignore |
bool | m_match_all_users = false |
Definition at line 194 of file ProcessInfo.h.
|
default |
|
inline |
Definition at line 198 of file ProcessInfo.h.
References lldb_private::ProcessInfo::GetExecutableFile(), m_match_info, and lldb_private::FileSpec::SetFile().
bool ProcessInstanceInfoMatch::ArchitectureMatches | ( | const ArchSpec & | arch_spec | ) | const |
Return true iff the architecture in this object matches arch_spec.
Definition at line 252 of file ProcessInfo.cpp.
References lldb_private::ProcessInfo::GetArchitecture(), lldb_private::ArchSpec::IsCompatibleMatch(), lldb_private::ArchSpec::IsValid(), and m_match_info.
Referenced by Matches().
void ProcessInstanceInfoMatch::Clear | ( | ) |
Definition at line 337 of file ProcessInfo.cpp.
References lldb_private::ProcessInstanceInfo::Clear(), lldb_private::Ignore, m_match_all_users, m_match_info, and m_name_match_type.
Referenced by CommandObjectPlatformProcessList::CommandOptions::OptionParsingStarting().
|
inline |
Definition at line 209 of file ProcessInfo.h.
References m_match_all_users.
Referenced by lldb_private::process_gdb_remote::GDBRemoteCommunicationClient::FindProcesses(), and lldb_private::Host::FindProcessesImpl().
|
inline |
Definition at line 213 of file ProcessInfo.h.
References m_name_match_type.
Referenced by CommandObjectPlatformProcessList::DoExecute(), lldb_private::process_gdb_remote::GDBRemoteCommunicationClient::FindProcesses(), GetFreeBSDProcessArgs(), GetMacOSXProcessArgs(), GetNetBSDProcessArgs(), and GetOpenBSDProcessArgs().
|
inline |
Definition at line 205 of file ProcessInfo.h.
References m_match_info.
Referenced by lldb_private::Process::Attach(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServerLLGS::AttachWaitProcess(), CommandObjectPlatformProcessList::DoExecute(), lldb_private::process_gdb_remote::GDBRemoteCommunicationClient::FindProcesses(), GetFreeBSDProcessArgs(), GetMacOSXProcessArgs(), GetNetBSDProcessArgs(), GetOpenBSDProcessArgs(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServerCommon::Handle_qfProcessInfo(), and CommandObjectPlatformProcessList::CommandOptions::SetOptionValue().
|
inline |
Definition at line 207 of file ProcessInfo.h.
References m_match_info.
bool ProcessInstanceInfoMatch::MatchAllProcesses | ( | ) | const |
Definition at line 306 of file ProcessInfo.cpp.
References lldb_private::ProcessInstanceInfo::EffectiveGroupIDIsValid(), lldb_private::ProcessInstanceInfo::EffectiveUserIDIsValid(), lldb_private::ProcessInfo::GetArchitecture(), lldb_private::ProcessInfo::GroupIDIsValid(), lldb_private::Ignore, lldb_private::ArchSpec::IsValid(), m_match_all_users, m_match_info, m_name_match_type, lldb_private::ProcessInstanceInfo::ParentProcessIDIsValid(), lldb_private::ProcessInfo::ProcessIDIsValid(), and lldb_private::ProcessInfo::UserIDIsValid().
Referenced by lldb_private::process_gdb_remote::GDBRemoteCommunicationClient::FindProcesses().
bool ProcessInstanceInfoMatch::Matches | ( | const ProcessInstanceInfo & | proc_info | ) | const |
Definition at line 299 of file ProcessInfo.cpp.
References ArchitectureMatches(), lldb_private::ProcessInfo::GetArchitecture(), lldb_private::ProcessInfo::GetName(), NameMatches(), ProcessIDsMatch(), and UserIDsMatch().
Referenced by lldb_private::Host::FindProcessesImpl().
bool ProcessInstanceInfoMatch::NameMatches | ( | const char * | process_name | ) | const |
Return true iff the process name in this object matches process_name.
Definition at line 258 of file ProcessInfo.cpp.
References lldb_private::ProcessInfo::GetName(), lldb_private::Ignore, m_match_info, m_name_match_type, and lldb_private::NameMatches().
Referenced by Matches().
bool ProcessInstanceInfoMatch::ProcessIDsMatch | ( | const ProcessInstanceInfo & | proc_info | ) | const |
Return true iff the process ID and parent process IDs in this object match the ones in proc_info.
Definition at line 268 of file ProcessInfo.cpp.
References lldb_private::ProcessInstanceInfo::GetParentProcessID(), lldb_private::ProcessInfo::GetProcessID(), m_match_info, lldb_private::ProcessInstanceInfo::ParentProcessIDIsValid(), and lldb_private::ProcessInfo::ProcessIDIsValid().
Referenced by Matches().
|
inline |
Definition at line 211 of file ProcessInfo.h.
References m_match_all_users.
Referenced by lldb_private::process_gdb_remote::GDBRemoteCommunicationServerCommon::Handle_qfProcessInfo(), and CommandObjectPlatformProcessList::CommandOptions::SetOptionValue().
|
inline |
Definition at line 215 of file ProcessInfo.h.
References m_name_match_type.
Referenced by lldb_private::Process::Attach(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServerLLGS::AttachWaitProcess(), lldb_private::Host::FindProcessesImpl(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServerCommon::Handle_qfProcessInfo(), and CommandObjectPlatformProcessList::CommandOptions::SetOptionValue().
bool ProcessInstanceInfoMatch::UserIDsMatch | ( | const ProcessInstanceInfo & | proc_info | ) | const |
Return true iff the (both effective and real) user and group IDs in this object match the ones in proc_info.
Definition at line 280 of file ProcessInfo.cpp.
References lldb_private::ProcessInstanceInfo::EffectiveGroupIDIsValid(), lldb_private::ProcessInstanceInfo::EffectiveUserIDIsValid(), lldb_private::ProcessInstanceInfo::GetEffectiveGroupID(), lldb_private::ProcessInstanceInfo::GetEffectiveUserID(), lldb_private::ProcessInfo::GetGroupID(), lldb_private::ProcessInfo::GetUserID(), lldb_private::ProcessInfo::GroupIDIsValid(), m_match_info, and lldb_private::ProcessInfo::UserIDIsValid().
Referenced by Matches().
|
protected |
Definition at line 241 of file ProcessInfo.h.
Referenced by Clear(), GetMatchAllUsers(), MatchAllProcesses(), and SetMatchAllUsers().
|
protected |
Definition at line 239 of file ProcessInfo.h.
Referenced by ArchitectureMatches(), Clear(), GetProcessInfo(), MatchAllProcesses(), NameMatches(), ProcessIDsMatch(), ProcessInstanceInfoMatch(), and UserIDsMatch().
|
protected |
Definition at line 240 of file ProcessInfo.h.
Referenced by Clear(), GetNameMatchType(), MatchAllProcesses(), NameMatches(), and SetNameMatchType().