From 8b33567189ea25fbdd454d9c4cc75cb2850a821f Mon Sep 17 00:00:00 2001 From: Vince Harron Date: Tue, 12 May 2015 01:10:56 +0000 Subject: Get lldb-server building on android-9 Build lldb-server with an android-9 sysroot. llvm-svn: 237078 --- .../Plugins/Process/Linux/NativeProcessLinux.cpp | 54 ++-------------------- 1 file changed, 5 insertions(+), 49 deletions(-) (limited to 'lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp') diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp index 4e4bbd8eb29e..5491efec43c9 100644 --- a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp @@ -54,10 +54,8 @@ // System includes - They have to be included after framework includes because they define some // macros which collide with variable names in other modules #include -#include -#include #include -#include + #include #include #include @@ -68,52 +66,10 @@ #include #endif -#ifdef __ANDROID__ -#define __ptrace_request int -#define PT_DETACH PTRACE_DETACH -#endif - -#define DEBUG_PTRACE_MAXBYTES 20 - -// Support ptrace extensions even when compiled without required kernel support -#ifndef PT_GETREGS -#ifndef PTRACE_GETREGS - #define PTRACE_GETREGS 12 -#endif -#endif -#ifndef PT_SETREGS -#ifndef PTRACE_SETREGS - #define PTRACE_SETREGS 13 -#endif -#endif -#ifndef PT_GETFPREGS -#ifndef PTRACE_GETFPREGS - #define PTRACE_GETFPREGS 14 -#endif -#endif -#ifndef PT_SETFPREGS -#ifndef PTRACE_SETFPREGS - #define PTRACE_SETFPREGS 15 -#endif -#endif -#ifndef PTRACE_GETREGSET - #define PTRACE_GETREGSET 0x4204 -#endif -#ifndef PTRACE_SETREGSET - #define PTRACE_SETREGSET 0x4205 -#endif -#ifndef PTRACE_GET_THREAD_AREA - #define PTRACE_GET_THREAD_AREA 25 -#endif -#ifndef PTRACE_ARCH_PRCTL - #define PTRACE_ARCH_PRCTL 30 -#endif -#ifndef ARCH_GET_FS - #define ARCH_SET_GS 0x1001 - #define ARCH_SET_FS 0x1002 - #define ARCH_GET_FS 0x1003 - #define ARCH_GET_GS 0x1004 -#endif +#include "lldb/Host/linux/Personality.h" +#include "lldb/Host/linux/Ptrace.h" +#include "lldb/Host/linux/Signalfd.h" +#include "lldb/Host/android/Android.h" #define LLDB_PERSONALITY_GET_CURRENT_SETTINGS 0xffffffff -- cgit v1.2.3