LLDB  mainline
Namespaces | Functions
linux/Host.cpp File Reference
#include <cerrno>
#include <cstdio>
#include <cstring>
#include <dirent.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/utsname.h>
#include <unistd.h>
#include "llvm/ADT/StringSwitch.h"
#include "llvm/Object/ELF.h"
#include "llvm/Support/ScopedPrinter.h"
#include "lldb/Utility/Log.h"
#include "lldb/Utility/ProcessInfo.h"
#include "lldb/Utility/Status.h"
#include "lldb/Host/FileSystem.h"
#include "lldb/Host/Host.h"
#include "lldb/Host/HostInfo.h"
#include "lldb/Host/linux/Host.h"
#include "lldb/Host/linux/Support.h"
#include "lldb/Utility/DataExtractor.h"
Include dependency graph for linux/Host.cpp:

Go to the source code of this file.

Namespaces

 lldb_private
 A class that represents a running process on the host machine.
 

Functions

static bool GetStatusInfo (::pid_t Pid, ProcessInstanceInfo &ProcessInfo, ProcessState &State, ::pid_t &TracerPid, ::pid_t &Tgid)
 
static bool IsDirNumeric (const char *dname)
 
static ArchSpec GetELFProcessCPUType (llvm::StringRef exe_path)
 
static void GetProcessArgs (::pid_t pid, ProcessInstanceInfo &process_info)
 
static void GetExePathAndArch (::pid_t pid, ProcessInstanceInfo &process_info)
 
static void GetProcessEnviron (::pid_t pid, ProcessInstanceInfo &process_info)
 
static bool GetProcessAndStatInfo (::pid_t pid, ProcessInstanceInfo &process_info, ProcessState &State, ::pid_t &tracerpid)
 

Function Documentation

◆ GetELFProcessCPUType()

static ArchSpec GetELFProcessCPUType ( llvm::StringRef  exe_path)
static

Definition at line 128 of file linux/Host.cpp.

References lldb_private::GetLogIfAllCategoriesSet(), LIBLLDB_LOG_HOST, LLDB_LOG, and x20.

Referenced by GetExePathAndArch().

◆ GetExePathAndArch()

static void GetExePathAndArch ( ::pid_t  pid,
ProcessInstanceInfo process_info 
)
static

◆ GetProcessAndStatInfo()

static bool GetProcessAndStatInfo ( ::pid_t  pid,
ProcessInstanceInfo process_info,
ProcessState &  State,
::pid_t tracerpid 
)
static

◆ GetProcessArgs()

static void GetProcessArgs ( ::pid_t  pid,
ProcessInstanceInfo process_info 
)
static

◆ GetProcessEnviron()

static void GetProcessEnviron ( ::pid_t  pid,
ProcessInstanceInfo process_info 
)
static

◆ GetStatusInfo()

static bool GetStatusInfo ( ::pid_t  Pid,
ProcessInstanceInfo ProcessInfo,
ProcessState &  State,
::pid_t TracerPid,
::pid_t Tgid 
)
static

◆ IsDirNumeric()

static bool IsDirNumeric ( const char *  dname)
static

Definition at line 120 of file linux/Host.cpp.