Changeset View
Changeset View
Standalone View
Standalone View
lldb/trunk/source/Plugins/Process/Linux/ProcessMonitor.cpp
Show All 10 Lines | |||||
// C Includes | // C Includes | ||||
#include <errno.h> | #include <errno.h> | ||||
#include <poll.h> | #include <poll.h> | ||||
#include <string.h> | #include <string.h> | ||||
#include <stdint.h> | #include <stdint.h> | ||||
#include <unistd.h> | #include <unistd.h> | ||||
#include <elf.h> | #include <elf.h> | ||||
#if defined(__ANDROID_NDK__) && defined (__arm__) | |||||
#include <linux/personality.h> | |||||
#include <linux/user.h> | |||||
#else | |||||
#include <sys/personality.h> | |||||
#include <sys/user.h> | |||||
#endif | |||||
#ifndef __ANDROID__ | |||||
#include <sys/procfs.h> | |||||
#endif | |||||
#include <sys/ptrace.h> | |||||
#include <sys/uio.h> | |||||
#include <sys/socket.h> | |||||
#include <sys/syscall.h> | |||||
#include <sys/types.h> | |||||
#include <sys/wait.h> | |||||
// C++ Includes | // C++ Includes | ||||
// Other libraries and framework includes | // Other libraries and framework includes | ||||
#include "lldb/Core/Debugger.h" | #include "lldb/Core/Debugger.h" | ||||
#include "lldb/Core/Error.h" | #include "lldb/Core/Error.h" | ||||
#include "lldb/Core/RegisterValue.h" | #include "lldb/Core/RegisterValue.h" | ||||
#include "lldb/Core/Scalar.h" | #include "lldb/Core/Scalar.h" | ||||
#include "lldb/Host/Host.h" | #include "lldb/Host/Host.h" | ||||
#include "lldb/Host/HostThread.h" | #include "lldb/Host/HostThread.h" | ||||
#include "lldb/Host/ThreadLauncher.h" | #include "lldb/Host/ThreadLauncher.h" | ||||
#include "lldb/Target/Thread.h" | #include "lldb/Target/Thread.h" | ||||
#include "lldb/Target/RegisterContext.h" | #include "lldb/Target/RegisterContext.h" | ||||
#include "lldb/Utility/PseudoTerminal.h" | #include "lldb/Utility/PseudoTerminal.h" | ||||
#include "Plugins/Process/POSIX/CrashReason.h" | #include "Plugins/Process/POSIX/CrashReason.h" | ||||
#include "Plugins/Process/POSIX/POSIXThread.h" | #include "Plugins/Process/POSIX/POSIXThread.h" | ||||
#include "ProcessLinux.h" | #include "ProcessLinux.h" | ||||
#include "Plugins/Process/POSIX/ProcessPOSIXLog.h" | #include "Plugins/Process/POSIX/ProcessPOSIXLog.h" | ||||
#include "ProcessMonitor.h" | #include "ProcessMonitor.h" | ||||
// System includes - They have to be included after framework includes because they define some | |||||
// macros which collide with variable names in other modules | |||||
#ifndef __ANDROID__ | |||||
#include <sys/procfs.h> | |||||
#endif | |||||
#include <sys/personality.h> | |||||
#include <sys/ptrace.h> | |||||
#include <sys/socket.h> | |||||
#include <sys/syscall.h> | |||||
#include <sys/types.h> | |||||
#include <sys/uio.h> | |||||
#include <sys/user.h> | |||||
#include <sys/wait.h> | |||||
#ifdef __ANDROID__ | #ifdef __ANDROID__ | ||||
#define __ptrace_request int | #define __ptrace_request int | ||||
#define PT_DETACH PTRACE_DETACH | #define PT_DETACH PTRACE_DETACH | ||||
#endif | #endif | ||||
#define DEBUG_PTRACE_MAXBYTES 20 | #define DEBUG_PTRACE_MAXBYTES 20 | ||||
// Support ptrace extensions even when compiled without required kernel support | // Support ptrace extensions even when compiled without required kernel support | ||||
▲ Show 20 Lines • Show All 2,303 Lines • Show Last 20 Lines |