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 297 of file ProcessInfo.h.
|
default |
|
inline |
Definition at line 301 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 253 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 338 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 312 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 316 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 308 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 310 of file ProcessInfo.h.
References m_match_info.
bool ProcessInstanceInfoMatch::MatchAllProcesses | ( | ) | const |
Definition at line 307 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(), and lldb_private::Platform::GetAllProcesses().
bool ProcessInstanceInfoMatch::Matches | ( | const ProcessInstanceInfo & | proc_info | ) | const |
Definition at line 300 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 259 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 269 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 314 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 318 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 281 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 344 of file ProcessInfo.h.
Referenced by Clear(), GetMatchAllUsers(), MatchAllProcesses(), and SetMatchAllUsers().
|
protected |
Definition at line 342 of file ProcessInfo.h.
Referenced by ArchitectureMatches(), Clear(), GetProcessInfo(), MatchAllProcesses(), NameMatches(), ProcessIDsMatch(), ProcessInstanceInfoMatch(), and UserIDsMatch().
|
protected |
Definition at line 343 of file ProcessInfo.h.
Referenced by Clear(), GetNameMatchType(), MatchAllProcesses(), NameMatches(), and SetNameMatchType().