ptrace-abi.h revision 96c1db7b9d601c31d103389cac074a6cce0d7633
1/****************************************************************************
2 ****************************************************************************
3 ***
4 ***   This header was automatically generated from a Linux kernel header
5 ***   of the same name, to make information necessary for userspace to
6 ***   call into the kernel available to libc.  It contains only constants,
7 ***   structures, and macros generated from the original header, and thus,
8 ***   contains no copyrightable information.
9 ***
10 ***   To edit the content of this header, modify the corresponding
11 ***   source file (e.g. under external/kernel-headers/original/) then
12 ***   run bionic/libc/kernel/tools/update_all.py
13 ***
14 ***   Any manual change here will be lost the next time this script will
15 ***   be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _ASM_X86_PTRACE_ABI_H
20#define _ASM_X86_PTRACE_ABI_H
21#ifdef __i386__
22#define EBX 0
23#define ECX 1
24#define EDX 2
25#define ESI 3
26#define EDI 4
27#define EBP 5
28#define EAX 6
29#define DS 7
30#define ES 8
31#define FS 9
32#define GS 10
33#define ORIG_EAX 11
34#define EIP 12
35#define CS 13
36#define EFL 14
37#define UESP 15
38#define SS 16
39#define FRAME_SIZE 17
40#else
41#if defined(__ASSEMBLY__) || defined(__FRAME_OFFSETS)
42#define R15 0
43#define R14 8
44#define R13 16
45#define R12 24
46#define RBP 32
47#define RBX 40
48#define R11 48
49#define R10 56
50#define R9 64
51#define R8 72
52#define RAX 80
53#define RCX 88
54#define RDX 96
55#define RSI 104
56#define RDI 112
57#define ORIG_RAX 120
58#define RIP 128
59#define CS 136
60#define EFLAGS 144
61#define RSP 152
62#define SS 160
63#endif
64#define FRAME_SIZE 168
65#endif
66#define PTRACE_GETREGS 12
67#define PTRACE_SETREGS 13
68#define PTRACE_GETFPREGS 14
69#define PTRACE_SETFPREGS 15
70#define PTRACE_GETFPXREGS 18
71#define PTRACE_SETFPXREGS 19
72#define PTRACE_OLDSETOPTIONS 21
73#define PTRACE_GET_THREAD_AREA 25
74#define PTRACE_SET_THREAD_AREA 26
75#ifdef __x86_64__
76#define PTRACE_ARCH_PRCTL 30
77#endif
78#define PTRACE_SYSEMU 31
79#define PTRACE_SYSEMU_SINGLESTEP 32
80#define PTRACE_SINGLEBLOCK 33
81#ifndef __ASSEMBLY__
82#include <linux/types.h>
83#endif
84#endif
85