LLDB  mainline
Functions
ProcessLauncherPosixFork.cpp File Reference
#include "lldb/Host/posix/ProcessLauncherPosixFork.h"
#include "lldb/Host/Host.h"
#include "lldb/Host/HostProcess.h"
#include "lldb/Host/Pipe.h"
#include "lldb/Host/ProcessLaunchInfo.h"
#include "lldb/Utility/FileSpec.h"
#include "lldb/Utility/Log.h"
#include "llvm/Support/Errno.h"
#include "llvm/Support/FileSystem.h"
#include <climits>
#include <sys/ptrace.h>
#include <sys/wait.h>
#include <unistd.h>
#include <sstream>
#include <csignal>
Include dependency graph for ProcessLauncherPosixFork.cpp:

Go to the source code of this file.

Functions

static void write_string (int error_fd, const char *str)
 
static void ExitWithError (int error_fd, const char *operation)
 
static void DisableASLR (int error_fd)
 
static void DupDescriptor (int error_fd, const char *file, int fd, int flags)
 
static void ChildFunc (int error_fd, const ForkLaunchInfo &info)
 
static std::vector< ForkFileAction > MakeForkActions (const ProcessLaunchInfo &info)
 
static Environment::Envp FixupEnvironment (Environment env)
 

Function Documentation

◆ ChildFunc()

static void ChildFunc ( int  error_fd,
const ForkLaunchInfo &  info 
)
static

◆ DisableASLR()

static void DisableASLR ( int  error_fd)
static

Definition at line 60 of file ProcessLauncherPosixFork.cpp.

References ExitWithError().

Referenced by ChildFunc().

◆ DupDescriptor()

static void DupDescriptor ( int  error_fd,
const char *  file,
int  fd,
int  flags 
)
static

Definition at line 73 of file ProcessLauncherPosixFork.cpp.

References ExitWithError().

Referenced by ChildFunc().

◆ ExitWithError()

static void ExitWithError ( int  error_fd,
const char *  operation 
)
static

Definition at line 50 of file ProcessLauncherPosixFork.cpp.

References write_string().

Referenced by ChildFunc(), DisableASLR(), and DupDescriptor().

◆ FixupEnvironment()

static Environment::Envp FixupEnvironment ( Environment  env)
static

◆ MakeForkActions()

static std::vector<ForkFileAction> MakeForkActions ( const ProcessLaunchInfo info)
static

◆ write_string()

static void write_string ( int  error_fd,
const char *  str 
)
static

Definition at line 45 of file ProcessLauncherPosixFork.cpp.

Referenced by ExitWithError().