1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef _ASM_X86_PTRACE_ABI_H
8 #define _ASM_X86_PTRACE_ABI_H
9 #ifdef __i386__
10 #define EBX 0
11 #define ECX 1
12 #define EDX 2
13 #define ESI 3
14 #define EDI 4
15 #define EBP 5
16 #define EAX 6
17 #define DS 7
18 #define ES 8
19 #define FS 9
20 #define GS 10
21 #define ORIG_EAX 11
22 #define EIP 12
23 #define CS 13
24 #define EFL 14
25 #define UESP 15
26 #define SS 16
27 #define FRAME_SIZE 17
28 #else
29 #if defined(__ASSEMBLY__) || defined(__FRAME_OFFSETS)
30 #define R15 0
31 #define R14 8
32 #define R13 16
33 #define R12 24
34 #define RBP 32
35 #define RBX 40
36 #define R11 48
37 #define R10 56
38 #define R9 64
39 #define R8 72
40 #define RAX 80
41 #define RCX 88
42 #define RDX 96
43 #define RSI 104
44 #define RDI 112
45 #define ORIG_RAX 120
46 #define RIP 128
47 #define CS 136
48 #define EFLAGS 144
49 #define RSP 152
50 #define SS 160
51 #endif
52 #define FRAME_SIZE 168
53 #endif
54 #define PTRACE_GETREGS 12
55 #define PTRACE_SETREGS 13
56 #define PTRACE_GETFPREGS 14
57 #define PTRACE_SETFPREGS 15
58 #define PTRACE_GETFPXREGS 18
59 #define PTRACE_SETFPXREGS 19
60 #define PTRACE_OLDSETOPTIONS 21
61 #define PTRACE_GET_THREAD_AREA 25
62 #define PTRACE_SET_THREAD_AREA 26
63 #ifdef __x86_64__
64 #define PTRACE_ARCH_PRCTL 30
65 #endif
66 #define PTRACE_SYSEMU 31
67 #define PTRACE_SYSEMU_SINGLESTEP 32
68 #define PTRACE_SINGLEBLOCK 33
69 #ifndef __ASSEMBLY__
70 #include <linux/types.h>
71 #endif
72 #endif
73