]>
Commit | Line | Data |
---|---|---|
70e0eb8e JD |
1 | #ifndef I386_PTRACE_ABI_H |
2 | #define I386_PTRACE_ABI_H | |
3 | ||
4 | #define EBX 0 | |
5 | #define ECX 1 | |
6 | #define EDX 2 | |
7 | #define ESI 3 | |
8 | #define EDI 4 | |
9 | #define EBP 5 | |
10 | #define EAX 6 | |
11 | #define DS 7 | |
12 | #define ES 8 | |
13 | #define FS 9 | |
14 | #define GS 10 | |
15 | #define ORIG_EAX 11 | |
16 | #define EIP 12 | |
17 | #define CS 13 | |
18 | #define EFL 14 | |
19 | #define UESP 15 | |
20 | #define SS 16 | |
21 | #define FRAME_SIZE 17 | |
22 | ||
23 | /* Arbitrarily choose the same ptrace numbers as used by the Sparc code. */ | |
24 | #define PTRACE_GETREGS 12 | |
25 | #define PTRACE_SETREGS 13 | |
26 | #define PTRACE_GETFPREGS 14 | |
27 | #define PTRACE_SETFPREGS 15 | |
28 | #define PTRACE_GETFPXREGS 18 | |
29 | #define PTRACE_SETFPXREGS 19 | |
30 | ||
31 | #define PTRACE_OLDSETOPTIONS 21 | |
32 | ||
33 | #define PTRACE_GET_THREAD_AREA 25 | |
34 | #define PTRACE_SET_THREAD_AREA 26 | |
35 | ||
36 | #define PTRACE_SYSEMU 31 | |
37 | #define PTRACE_SYSEMU_SINGLESTEP 32 | |
38 | ||
39 | #endif |