]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/platform-bionic.git/blob - libc/kernel/arch-x86/asm/ptrace-abi.h
auto import from //depot/cupcake/@132589
[android-sdk/platform-bionic.git] / libc / kernel / arch-x86 / asm / ptrace-abi.h
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  ****************************************************************************
11  ****************************************************************************/
12 #ifndef _ASM_X86_PTRACE_ABI_H
13 #define _ASM_X86_PTRACE_ABI_H
15 #ifdef __i386__
17 #define EBX 0
18 #define ECX 1
19 #define EDX 2
20 #define ESI 3
21 #define EDI 4
22 #define EBP 5
23 #define EAX 6
24 #define DS 7
25 #define ES 8
26 #define FS 9
27 #define GS 10
28 #define ORIG_EAX 11
29 #define EIP 12
30 #define CS 13
31 #define EFL 14
32 #define UESP 15
33 #define SS 16
34 #define FRAME_SIZE 17
36 #else
38 #if defined(__ASSEMBLY__) || defined(__FRAME_OFFSETS)
39 #define R15 0
40 #define R14 8
41 #define R13 16
42 #define R12 24
43 #define RBP 32
44 #define RBX 40
46 #define R11 48
47 #define R10 56
48 #define R9 64
49 #define R8 72
50 #define RAX 80
51 #define RCX 88
52 #define RDX 96
53 #define RSI 104
54 #define RDI 112
55 #define ORIG_RAX 120  
57 #define RIP 128
58 #define CS 136
59 #define EFLAGS 144
60 #define RSP 152
61 #define SS 160
62 #define ARGOFFSET R11
63 #endif
65 #define FRAME_SIZE 168
67 #endif
69 #define PTRACE_GETREGS 12
70 #define PTRACE_SETREGS 13
71 #define PTRACE_GETFPREGS 14
72 #define PTRACE_SETFPREGS 15
73 #define PTRACE_GETFPXREGS 18
74 #define PTRACE_SETFPXREGS 19
76 #define PTRACE_OLDSETOPTIONS 21
78 #define PTRACE_GET_THREAD_AREA 25
79 #define PTRACE_SET_THREAD_AREA 26
81 #ifdef __x86_64__
82 #define PTRACE_ARCH_PRCTL 30
83 #else
84 #define PTRACE_SYSEMU 31
85 #define PTRACE_SYSEMU_SINGLESTEP 32
86 #endif
88 #endif