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/FileSpec.h"
#include "lldb/Utility/LLDBLog.h"
#include "lldb/Utility/Log.h"
#include "lldb/Utility/Predicate.h"
#include "lldb/Utility/Status.h"
#include "lldb/lldb-private-forward.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/Support/Errno.h"
#include "llvm/Support/FileSystem.h"
#include "lldb/Host/posix/ProcessLauncherPosixFork.h"
#include <syslog.h>

Go to the source code of this file.

Classes

class  ScopedPThreadCancelDisabler
 
struct  ShellInfo
 

Functions

static thread_result_t MonitorChildProcessThreadFunction (::pid_t pid, Host::MonitorChildProcessCallback callback)
 
static bool CheckForMonitorCancellation ()
 
static void MonitorShellCommand (std::shared_ptr< ShellInfo > shell_info, lldb::pid_t pid, int signo, int status)
 

Function Documentation

◆ CheckForMonitorCancellation()

static bool CheckForMonitorCancellation ( )
static

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

Referenced by MonitorChildProcessThreadFunction().

◆ MonitorChildProcessThreadFunction()

static thread_result_t MonitorChildProcessThreadFunction ( ::pid_t  pid,
Host::MonitorChildProcessCallback  callback 
)
static

◆ MonitorShellCommand()

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

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

References lldb_private::eBroadcastAlways.

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