Go to the documentation of this file.
9 #ifndef LLDB_UTILITY_PROCESSINFO_H
10 #define LLDB_UTILITY_PROCESSINFO_H
44 bool add_exe_file_as_first_arg);
78 llvm::StringRef
GetArg0()
const;
80 void SetArg0(llvm::StringRef arg);
84 void SetArguments(
char const **argv,
bool first_arg_is_executable);
168 FileSpec::Style::native);
212 #endif // LLDB_UTILITY_PROCESSINFO_H
void SetNameMatchType(NameMatch name_match_type)
NameMatch m_name_match_type
const Environment & GetEnvironment() const
bool ProcessIDIsValid() const
void SetExecutableFile(const FileSpec &exe_file, bool add_exe_file_as_first_arg)
bool GetMatchAllUsers() const
void SetArchitecture(const ArchSpec &arch)
#define LLDB_INVALID_PROCESS_ID
bool NameMatches(const char *process_name) const
Return true iff the process name in this object matches process_name.
const ProcessInstanceInfo & GetProcessInfo() const
uint32_t GetGroupID() const
void SetMatchAllUsers(bool b)
uint32_t GetUserID() const
bool ArchitectureMatches(const ArchSpec &arch_spec) const
Return true iff the architecture in this object matches arch_spec.
uint32_t GetEffectiveGroupID() const
void SetUserID(uint32_t uid)
lldb::pid_t GetProcessID() const
void SetProcessID(lldb::pid_t pid)
void SetEffectiveUserID(uint32_t uid)
bool EffectiveUserIDIsValid() const
const FileSpec & GetExecutableFile() const
bool UserIDIsValid() const
bool Matches(const ProcessInstanceInfo &proc_info) const
static void DumpTableHeader(Stream &s, bool show_args, bool verbose)
uint32_t GetEffectiveUserID() const
void SetEffectiveGroupID(uint32_t gid)
bool GroupIDIsValid() const
void SetArg0(llvm::StringRef arg)
ProcessInstanceInfo & GetProcessInfo()
bool MatchAllProcesses() const
bool ParentProcessIDIsValid() const
const char * GetName() const
llvm::StringRef GetNameAsStringRef() const
string(SUBSTRING ${p} 10 -1 pStripped) if($
Environment m_environment
bool EffectiveGroupIDIsValid() const
NameMatch GetNameMatchType() const
An abstract interface for things that know how to map numeric user/group IDs into names.
lldb::pid_t GetParentProcessID() const
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 pro...
Environment & GetEnvironment()
ProcessInstanceInfo m_match_info
void Dump(Stream &s, UserIDResolver &resolver) const
ProcessInstanceInfoMatch(const char *process_name, NameMatch process_name_match_type)
void DumpAsTableRow(Stream &s, UserIDResolver &resolver, bool show_args, bool verbose) const
ProcessInstanceInfoMatch()=default
ArchSpec & GetArchitecture()
A class that represents a running process on the host machine.
const ArchSpec & GetArchitecture() const
FileSpec & GetExecutableFile()
ProcessInstanceInfo()=default
ProcessInstanceInfo(const char *name, const ArchSpec &arch, lldb::pid_t pid)
llvm::StringRef GetArg0() const
void SetFile(llvm::StringRef path, Style style)
Change the file specified with a new path.
const Args & GetArguments() const
void Dump(Stream &s, Platform *platform) const
std::vector< ProcessInstanceInfo > ProcessInstanceInfoList
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.
void SetParentProcessID(lldb::pid_t pid)
void SetArguments(const Args &args, bool first_arg_is_executable)
void SetGroupID(uint32_t gid)