LLDB  mainline
Classes | Functions
common/Host.cpp File Reference
#include <cerrno>
#include <climits>
#include <cstdlib>
#include <sys/types.h>
#include <dlfcn.h>
#include <grp.h>
#include <netdb.h>
#include <pwd.h>
#include <sys/stat.h>
#include <unistd.h>
#include <csignal>
#include "lldb/Host/FileAction.h"
#include "lldb/Host/FileSystem.h"
#include "lldb/Host/Host.h"
#include "lldb/Host/HostInfo.h"
#include "lldb/Host/HostProcess.h"
#include "lldb/Host/MonitoringProcessLauncher.h"
#include "lldb/Host/ProcessLaunchInfo.h"
#include "lldb/Host/ProcessLauncher.h"
#include "lldb/Host/ThreadLauncher.h"
#include "lldb/Host/posix/ConnectionFileDescriptorPosix.h"
#include "lldb/Utility/DataBufferLLVM.h"
#include "lldb/Utility/FileSpec.h"
#include "lldb/Utility/Log.h"
#include "lldb/Utility/Predicate.h"
#include "lldb/Utility/ReproducerProvider.h"
#include "lldb/Utility/Status.h"
#include "lldb/lldb-private-forward.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/Support/Errno.h"
#include "llvm/Support/FileSystem.h"
#include "lldb/Host/posix/ProcessLauncherPosixFork.h"
Include dependency graph for common/Host.cpp:

Go to the source code of this file.

Classes

struct  MonitorInfo
 
class  ScopedPThreadCancelDisabler
 
struct  ShellInfo
 

Functions

static thread_result_t MonitorChildProcessThreadFunction (void *arg)
 
static bool CheckForMonitorCancellation ()
 
static bool MonitorShellCommand (std::shared_ptr< ShellInfo > shell_info, lldb::pid_t pid, bool exited, int signo, int status)
 

Function Documentation

◆ CheckForMonitorCancellation()

static bool CheckForMonitorCancellation ( )
static

Definition at line 153 of file common/Host.cpp.

Referenced by MonitorChildProcessThreadFunction().

◆ MonitorChildProcessThreadFunction()

static thread_result_t MonitorChildProcessThreadFunction ( void *  arg)
static

◆ MonitorShellCommand()

static bool MonitorShellCommand ( std::shared_ptr< ShellInfo shell_info,
lldb::pid_t  pid,
bool  exited,
int  signo,
int  status 
)
static

Definition at line 454 of file common/Host.cpp.

References lldb_private::eBroadcastAlways.

Referenced by lldb_private::Host::RunShellCommand().