blob: e501d9f3b3cb00b4f71fa939662025c327e7725a [file] [log] [blame]
Elliott Hughesabd62612013-11-08 11:45:48 -08001/****************************************************************************
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
Elliott Hughesabd62612013-11-08 11:45:48 -080023#define ECX 1
24#define EDX 2
25#define ESI 3
26#define EDI 4
Elliott Hughesabd62612013-11-08 11:45:48 -080027#define EBP 5
28#define EAX 6
29#define DS 7
30#define ES 8
Elliott Hughesabd62612013-11-08 11:45:48 -080031#define FS 9
32#define GS 10
33#define ORIG_EAX 11
34#define EIP 12
Elliott Hughesabd62612013-11-08 11:45:48 -080035#define CS 13
36#define EFL 14
37#define UESP 15
38#define SS 16
Elliott Hughesabd62612013-11-08 11:45:48 -080039#define FRAME_SIZE 17
40#else
41#if defined(__ASSEMBLY__) || defined(__FRAME_OFFSETS)
42#define R15 0
Elliott Hughesabd62612013-11-08 11:45:48 -080043#define R14 8
44#define R13 16
45#define R12 24
46#define RBP 32
Elliott Hughesabd62612013-11-08 11:45:48 -080047#define RBX 40
48#define R11 48
49#define R10 56
50#define R9 64
Elliott Hughesabd62612013-11-08 11:45:48 -080051#define R8 72
52#define RAX 80
53#define RCX 88
54#define RDX 96
Elliott Hughesabd62612013-11-08 11:45:48 -080055#define RSI 104
56#define RDI 112
57#define ORIG_RAX 120
58#define RIP 128
Elliott Hughesabd62612013-11-08 11:45:48 -080059#define CS 136
60#define EFLAGS 144
61#define RSP 152
62#define SS 160
Elliott Hughesabd62612013-11-08 11:45:48 -080063#endif
64#define FRAME_SIZE 168
65#endif
Elliott Hughesabd62612013-11-08 11:45:48 -080066#define PTRACE_GETREGS 12
67#define PTRACE_SETREGS 13
68#define PTRACE_GETFPREGS 14
69#define PTRACE_SETFPREGS 15
Elliott Hughesabd62612013-11-08 11:45:48 -080070#define PTRACE_GETFPXREGS 18
71#define PTRACE_SETFPXREGS 19
72#define PTRACE_OLDSETOPTIONS 21
73#define PTRACE_GET_THREAD_AREA 25
Elliott Hughesabd62612013-11-08 11:45:48 -080074#define PTRACE_SET_THREAD_AREA 26
75#ifdef __x86_64__
76#define PTRACE_ARCH_PRCTL 30
77#endif
Elliott Hughesabd62612013-11-08 11:45:48 -080078#define PTRACE_SYSEMU 31
79#define PTRACE_SYSEMU_SINGLESTEP 32
80#define PTRACE_SINGLEBLOCK 33
81#ifndef __ASSEMBLY__
Elliott Hughesabd62612013-11-08 11:45:48 -080082#include <linux/types.h>
Elliott Hughesabd62612013-11-08 11:45:48 -080083#endif
84#endif