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 FixupEnvironment (Environment &env)
 
static void ExitWithError (int error_fd, const char *operation)
 
static void DisableASLRIfRequested (int error_fd, const ProcessLaunchInfo &info)
 
static void DupDescriptor (int error_fd, const FileSpec &file_spec, int fd, int flags)
 
static void ChildFunc (int error_fd, const ProcessLaunchInfo &info)
 

Function Documentation

◆ ChildFunc()

static void ChildFunc ( int  error_fd,
const ProcessLaunchInfo info 
)
static

◆ DisableASLRIfRequested()

static void DisableASLRIfRequested ( int  error_fd,
const ProcessLaunchInfo info 
)
static

◆ DupDescriptor()

static void DupDescriptor ( int  error_fd,
const FileSpec file_spec,
int  fd,
int  flags 
)
static

Definition at line 74 of file ProcessLauncherPosixFork.cpp.

References ExitWithError(), and lldb_private::FileSpec::GetCString().

Referenced by ChildFunc().

◆ ExitWithError()

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

Definition at line 50 of file ProcessLauncherPosixFork.cpp.

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

◆ FixupEnvironment()

static void FixupEnvironment ( Environment env)
static

Definition at line 41 of file ProcessLauncherPosixFork.cpp.

Referenced by ChildFunc().