LLDB  mainline
Macros | Functions
Host.mm File Reference
#include "lldb/Host/Host.h"
#include "PosixSpawnResponsible.h"
#include <AvailabilityMacros.h>
#include <TargetConditionals.h>
#include "llvm/Support/Host.h"
#include <asl.h>
#include <crt_externs.h>
#include <cstdio>
#include <cstdlib>
#include <dlfcn.h>
#include <grp.h>
#include <libproc.h>
#include <pwd.h>
#include <spawn.h>
#include <sys/proc.h>
#include <sys/stat.h>
#include <sys/sysctl.h>
#include <sys/types.h>
#include <unistd.h>
#include "lldb/Host/ConnectionFileDescriptor.h"
#include "lldb/Host/FileSystem.h"
#include "lldb/Host/HostInfo.h"
#include "lldb/Host/ProcessLaunchInfo.h"
#include "lldb/Host/ThreadLauncher.h"
#include "lldb/Utility/ArchSpec.h"
#include "lldb/Utility/DataBufferHeap.h"
#include "lldb/Utility/DataExtractor.h"
#include "lldb/Utility/Endian.h"
#include "lldb/Utility/FileSpec.h"
#include "lldb/Utility/Log.h"
#include "lldb/Utility/NameMatches.h"
#include "lldb/Utility/ProcessInfo.h"
#include "lldb/Utility/StreamString.h"
#include "lldb/Utility/StructuredData.h"
#include "lldb/lldb-defines.h"
#include "llvm/ADT/ScopeExit.h"
#include "llvm/Support/Errno.h"
#include "llvm/Support/FileSystem.h"
#include "../cfcpp/CFCBundle.h"
#include "../cfcpp/CFCMutableArray.h"
#include "../cfcpp/CFCMutableDictionary.h"
#include "../cfcpp/CFCReleaser.h"
#include "../cfcpp/CFCString.h"
#include <objc/objc-auto.h>
#include <CoreFoundation/CoreFoundation.h>
#include <Foundation/Foundation.h>
Include dependency graph for Host.mm:

Go to the source code of this file.

Macros

#define _POSIX_SPAWN_DISABLE_ASLR   0x0100
 

Functions

int __pthread_chdir (const char *path)
 
int __pthread_fchdir (int fildes)
 
static bool GetMacOSXProcessCPUType (ProcessInstanceInfo &process_info)
 
static bool GetMacOSXProcessArgs (const ProcessInstanceInfoMatch *match_info_ptr, ProcessInstanceInfo &process_info)
 
static bool GetMacOSXProcessUserAndGroup (ProcessInstanceInfo &process_info)
 
static short GetPosixspawnFlags (const ProcessLaunchInfo &launch_info)
 
static Status LaunchProcessXPC (const char *exe_path, ProcessLaunchInfo &launch_info, lldb::pid_t &pid)
 
static bool AddPosixSpawnFileAction (void *_file_actions, const FileAction *info, Log *log, Status &error)
 
static Status LaunchProcessPosixSpawn (const char *exe_path, const ProcessLaunchInfo &launch_info, lldb::pid_t &pid)
 
static bool ShouldLaunchUsingXPC (ProcessLaunchInfo &launch_info)
 

Macro Definition Documentation

◆ _POSIX_SPAWN_DISABLE_ASLR

#define _POSIX_SPAWN_DISABLE_ASLR   0x0100

Definition at line 87 of file Host.mm.

Function Documentation

◆ __pthread_chdir()

int __pthread_chdir ( const char *  path)

Referenced by LaunchProcessPosixSpawn().

◆ __pthread_fchdir()

int __pthread_fchdir ( int  fildes)

Referenced by LaunchProcessPosixSpawn().

◆ AddPosixSpawnFileAction()

static bool AddPosixSpawnFileAction ( void *  _file_actions,
const FileAction info,
Log log,
Status error 
)
static

◆ GetMacOSXProcessArgs()

static bool GetMacOSXProcessArgs ( const ProcessInstanceInfoMatch match_info_ptr,
ProcessInstanceInfo process_info 
)
static

◆ GetMacOSXProcessCPUType()

static bool GetMacOSXProcessCPUType ( ProcessInstanceInfo process_info)
static

◆ GetMacOSXProcessUserAndGroup()

static bool GetMacOSXProcessUserAndGroup ( ProcessInstanceInfo process_info)
static

◆ GetPosixspawnFlags()

static short GetPosixspawnFlags ( const ProcessLaunchInfo launch_info)
static

◆ LaunchProcessPosixSpawn()

static Status LaunchProcessPosixSpawn ( const char *  exe_path,
const ProcessLaunchInfo launch_info,
lldb::pid_t pid 
)
static

◆ LaunchProcessXPC()

static Status LaunchProcessXPC ( const char *  exe_path,
ProcessLaunchInfo launch_info,
lldb::pid_t pid 
)
static

◆ ShouldLaunchUsingXPC()

static bool ShouldLaunchUsingXPC ( ProcessLaunchInfo launch_info)
static

Definition at line 1264 of file Host.mm.

References lldb_private::ProcessInfo::GetUserID().