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 _UAPI_ASM_X86_PTRACE_H |
| 8 | #define _UAPI_ASM_X86_PTRACE_H |
| 9 | #include <linux/compiler.h> |
| 10 | #include <asm/ptrace-abi.h> |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 11 | #include <asm/processor-flags.h> |
| 12 | #ifndef __ASSEMBLY__ |
| 13 | #ifdef __i386__ |
| 14 | struct pt_regs { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 15 | long ebx; |
| 16 | long ecx; |
| 17 | long edx; |
| 18 | long esi; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 19 | long edi; |
| 20 | long ebp; |
| 21 | long eax; |
| 22 | int xds; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 23 | int xes; |
| 24 | int xfs; |
| 25 | int xgs; |
| 26 | long orig_eax; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 27 | long eip; |
| 28 | int xcs; |
| 29 | long eflags; |
| 30 | long esp; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 31 | int xss; |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 32 | }; |
| 33 | #else |
| 34 | struct pt_regs { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 35 | unsigned long r15; |
| 36 | unsigned long r14; |
| 37 | unsigned long r13; |
| 38 | unsigned long r12; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 39 | unsigned long rbp; |
| 40 | unsigned long rbx; |
| 41 | unsigned long r11; |
| 42 | unsigned long r10; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 43 | unsigned long r9; |
| 44 | unsigned long r8; |
| 45 | unsigned long rax; |
| 46 | unsigned long rcx; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 47 | unsigned long rdx; |
| 48 | unsigned long rsi; |
| 49 | unsigned long rdi; |
| 50 | unsigned long orig_rax; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 51 | unsigned long rip; |
| 52 | unsigned long cs; |
| 53 | unsigned long eflags; |
| 54 | unsigned long rsp; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 55 | unsigned long ss; |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 56 | }; |
| 57 | #endif |
| 58 | #endif |
Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 59 | #endif |