Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 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 | */ |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 7 | #ifndef _ASM_X86_PTRACE_ABI_H |
| 8 | #define _ASM_X86_PTRACE_ABI_H |
| 9 | #ifdef __i386__ |
| 10 | #define EBX 0 |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 11 | #define ECX 1 |
| 12 | #define EDX 2 |
| 13 | #define ESI 3 |
| 14 | #define EDI 4 |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 15 | #define EBP 5 |
| 16 | #define EAX 6 |
| 17 | #define DS 7 |
| 18 | #define ES 8 |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 19 | #define FS 9 |
| 20 | #define GS 10 |
| 21 | #define ORIG_EAX 11 |
| 22 | #define EIP 12 |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 23 | #define CS 13 |
| 24 | #define EFL 14 |
| 25 | #define UESP 15 |
| 26 | #define SS 16 |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 27 | #define FRAME_SIZE 17 |
| 28 | #else |
| 29 | #if defined(__ASSEMBLY__) || defined(__FRAME_OFFSETS) |
| 30 | #define R15 0 |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 31 | #define R14 8 |
| 32 | #define R13 16 |
| 33 | #define R12 24 |
| 34 | #define RBP 32 |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 35 | #define RBX 40 |
| 36 | #define R11 48 |
| 37 | #define R10 56 |
| 38 | #define R9 64 |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 39 | #define R8 72 |
| 40 | #define RAX 80 |
| 41 | #define RCX 88 |
| 42 | #define RDX 96 |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 43 | #define RSI 104 |
| 44 | #define RDI 112 |
| 45 | #define ORIG_RAX 120 |
| 46 | #define RIP 128 |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 47 | #define CS 136 |
| 48 | #define EFLAGS 144 |
| 49 | #define RSP 152 |
| 50 | #define SS 160 |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 51 | #endif |
| 52 | #define FRAME_SIZE 168 |
| 53 | #endif |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 54 | #define PTRACE_GETREGS 12 |
| 55 | #define PTRACE_SETREGS 13 |
| 56 | #define PTRACE_GETFPREGS 14 |
| 57 | #define PTRACE_SETFPREGS 15 |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 58 | #define PTRACE_GETFPXREGS 18 |
| 59 | #define PTRACE_SETFPXREGS 19 |
| 60 | #define PTRACE_OLDSETOPTIONS 21 |
| 61 | #define PTRACE_GET_THREAD_AREA 25 |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 62 | #define PTRACE_SET_THREAD_AREA 26 |
| 63 | #ifdef __x86_64__ |
| 64 | #define PTRACE_ARCH_PRCTL 30 |
| 65 | #endif |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 66 | #define PTRACE_SYSEMU 31 |
| 67 | #define PTRACE_SYSEMU_SINGLESTEP 32 |
| 68 | #define PTRACE_SINGLEBLOCK 33 |
| 69 | #ifndef __ASSEMBLY__ |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 70 | #include <linux/types.h> |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 71 | #endif |
| 72 | #endif |