File indexing completed on 2026-05-10 08:42:48
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef liblldb_Host_linux_Ptrace_h_
0012 #define liblldb_Host_linux_Ptrace_h_
0013
0014 #include <sys/ptrace.h>
0015
0016 #ifndef __GLIBC__
0017 typedef int __ptrace_request;
0018 #endif
0019
0020 #define DEBUG_PTRACE_MAXBYTES 20
0021
0022
0023 #ifndef PTRACE_GETREGS
0024 #define PTRACE_GETREGS 12
0025 #endif
0026 #ifndef PTRACE_SETREGS
0027 #define PTRACE_SETREGS 13
0028 #endif
0029 #ifndef PTRACE_GETFPREGS
0030 #define PTRACE_GETFPREGS 14
0031 #endif
0032 #ifndef PTRACE_SETFPREGS
0033 #define PTRACE_SETFPREGS 15
0034 #endif
0035 #ifndef PTRACE_GETREGSET
0036 #define PTRACE_GETREGSET 0x4204
0037 #endif
0038 #ifndef PTRACE_SETREGSET
0039 #define PTRACE_SETREGSET 0x4205
0040 #endif
0041 #ifndef PTRACE_GET_THREAD_AREA
0042 #define PTRACE_GET_THREAD_AREA 25
0043 #endif
0044 #ifndef PTRACE_ARCH_PRCTL
0045 #define PTRACE_ARCH_PRCTL 30
0046 #endif
0047 #ifndef ARCH_GET_FS
0048 #define ARCH_SET_GS 0x1001
0049 #define ARCH_SET_FS 0x1002
0050 #define ARCH_GET_FS 0x1003
0051 #define ARCH_GET_GS 0x1004
0052 #endif
0053 #ifndef PTRACE_PEEKMTETAGS
0054 #define PTRACE_PEEKMTETAGS 33
0055 #endif
0056 #ifndef PTRACE_POKEMTETAGS
0057 #define PTRACE_POKEMTETAGS 34
0058 #endif
0059
0060 #endif