#include "lldb/Utility/ProcessInfo.h"
#include "lldb/Utility/ArchSpec.h"
#include "lldb/Utility/ScriptedMetadata.h"
#include "lldb/Utility/Stream.h"
#include "lldb/Utility/StreamString.h"
#include "lldb/Utility/UserIDResolver.h"
#include "llvm/ADT/SmallString.h"
#include <climits>
#include <optional>
usingnamespacelldb;
usingnamespacelldb_private;
ProcessInfo::ProcessInfo()
: … { … }
ProcessInfo::ProcessInfo(const char *name, const ArchSpec &arch,
lldb::pid_t pid)
: … { … }
void ProcessInfo::Clear() { … }
const char *ProcessInfo::GetName() const { … }
llvm::StringRef ProcessInfo::GetNameAsStringRef() const { … }
void ProcessInfo::Dump(Stream &s, Platform *platform) const { … }
void ProcessInfo::SetExecutableFile(const FileSpec &exe_file,
bool add_exe_file_as_first_arg) { … }
llvm::StringRef ProcessInfo::GetArg0() const { … }
void ProcessInfo::SetArg0(llvm::StringRef arg) { … }
void ProcessInfo::SetArguments(char const **argv,
bool first_arg_is_executable) { … }
void ProcessInfo::SetArguments(const Args &args, bool first_arg_is_executable) { … }
bool ProcessInfo::IsScriptedProcess() const { … }
void ProcessInstanceInfo::Dump(Stream &s, UserIDResolver &resolver) const { … }
void ProcessInstanceInfo::DumpTableHeader(Stream &s, bool show_args,
bool verbose) { … }
void ProcessInstanceInfo::DumpAsTableRow(Stream &s, UserIDResolver &resolver,
bool show_args, bool verbose) const { … }
bool ProcessInstanceInfoMatch::ArchitectureMatches(
const ArchSpec &arch_spec) const { … }
bool ProcessInstanceInfoMatch::NameMatches(const char *process_name) const { … }
bool ProcessInstanceInfoMatch::ProcessIDsMatch(
const ProcessInstanceInfo &proc_info) const { … }
bool ProcessInstanceInfoMatch::UserIDsMatch(
const ProcessInstanceInfo &proc_info) const { … }
bool ProcessInstanceInfoMatch::Matches(
const ProcessInstanceInfo &proc_info) const { … }
bool ProcessInstanceInfoMatch::MatchAllProcesses() const { … }
void ProcessInstanceInfoMatch::Clear() { … }