blob: aa314e0dd7330759b7efe861c608516cf122af6a [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 Hughesabd62612013-11-08 11:45:48 -08007#ifndef _ASM_X86_PTRACE_ABI_H
8#define _ASM_X86_PTRACE_ABI_H
9#ifdef __i386__
10#define EBX 0
Elliott Hughesabd62612013-11-08 11:45:48 -080011#define ECX 1
12#define EDX 2
13#define ESI 3
14#define EDI 4
Elliott Hughesabd62612013-11-08 11:45:48 -080015#define EBP 5
16#define EAX 6
17#define DS 7
18#define ES 8
Elliott Hughesabd62612013-11-08 11:45:48 -080019#define FS 9
20#define GS 10
21#define ORIG_EAX 11
22#define EIP 12
Elliott Hughesabd62612013-11-08 11:45:48 -080023#define CS 13
24#define EFL 14
25#define UESP 15
26#define SS 16
Elliott Hughesabd62612013-11-08 11:45:48 -080027#define FRAME_SIZE 17
28#else
29#if defined(__ASSEMBLY__) || defined(__FRAME_OFFSETS)
30#define R15 0
Elliott Hughesabd62612013-11-08 11:45:48 -080031#define R14 8
32#define R13 16
33#define R12 24
34#define RBP 32
Elliott Hughesabd62612013-11-08 11:45:48 -080035#define RBX 40
36#define R11 48
37#define R10 56
38#define R9 64
Elliott Hughesabd62612013-11-08 11:45:48 -080039#define R8 72
40#define RAX 80
41#define RCX 88
42#define RDX 96
Elliott Hughesabd62612013-11-08 11:45:48 -080043#define RSI 104
44#define RDI 112
45#define ORIG_RAX 120
46#define RIP 128
Elliott Hughesabd62612013-11-08 11:45:48 -080047#define CS 136
48#define EFLAGS 144
49#define RSP 152
50#define SS 160
Elliott Hughesabd62612013-11-08 11:45:48 -080051#endif
52#define FRAME_SIZE 168
53#endif
Elliott Hughesabd62612013-11-08 11:45:48 -080054#define PTRACE_GETREGS 12
55#define PTRACE_SETREGS 13
56#define PTRACE_GETFPREGS 14
57#define PTRACE_SETFPREGS 15
Elliott Hughesabd62612013-11-08 11:45:48 -080058#define PTRACE_GETFPXREGS 18
59#define PTRACE_SETFPXREGS 19
60#define PTRACE_OLDSETOPTIONS 21
61#define PTRACE_GET_THREAD_AREA 25
Elliott Hughesabd62612013-11-08 11:45:48 -080062#define PTRACE_SET_THREAD_AREA 26
63#ifdef __x86_64__
64#define PTRACE_ARCH_PRCTL 30
65#endif
Elliott Hughesabd62612013-11-08 11:45:48 -080066#define PTRACE_SYSEMU 31
67#define PTRACE_SYSEMU_SINGLESTEP 32
68#define PTRACE_SINGLEBLOCK 33
69#ifndef __ASSEMBLY__
Elliott Hughesabd62612013-11-08 11:45:48 -080070#include <linux/types.h>
Elliott Hughesabd62612013-11-08 11:45:48 -080071#endif
72#endif