|
8 | 8 |
|
9 | 9 | // This file defines ptrace functions & structures |
10 | 10 |
|
11 | | -#ifndef liblldb_Host_linux_Ptrace_h_ |
12 | | -#define liblldb_Host_linux_Ptrace_h_ |
| 11 | +#ifndef liblldb_Host_aix_Ptrace_h_ |
| 12 | +#define liblldb_Host_aix_Ptrace_h_ |
13 | 13 |
|
14 | 14 | #include <sys/ptrace.h> |
15 | 15 |
|
16 | | -#ifndef __GLIBC__ |
17 | | -typedef int __ptrace_request; |
18 | | -#endif |
19 | | - |
20 | 16 | #define DEBUG_PTRACE_MAXBYTES 20 |
21 | 17 |
|
22 | 18 | // Support ptrace extensions even when compiled without required kernel support |
23 | 19 | #ifndef PTRACE_GETREGS |
24 | | -#define PTRACE_GETREGS 12 |
| 20 | +#define PTRACE_GETREGS (PT_COMMAND_MAX + 1) |
25 | 21 | #endif |
26 | 22 | #ifndef PTRACE_SETREGS |
27 | | -#define PTRACE_SETREGS 13 |
| 23 | +#define PTRACE_SETREGS (PT_COMMAND_MAX + 2) |
28 | 24 | #endif |
29 | 25 | #ifndef PTRACE_GETFPREGS |
30 | | -#define PTRACE_GETFPREGS 14 |
| 26 | +#define PTRACE_GETFPREGS (PT_COMMAND_MAX + 3) |
31 | 27 | #endif |
32 | 28 | #ifndef PTRACE_SETFPREGS |
33 | | -#define PTRACE_SETFPREGS 15 |
| 29 | +#define PTRACE_SETFPREGS (PT_COMMAND_MAX + 4) |
34 | 30 | #endif |
35 | 31 | #ifndef PTRACE_GETREGSET |
36 | 32 | #define PTRACE_GETREGSET 0x4204 |
37 | 33 | #endif |
38 | 34 | #ifndef PTRACE_SETREGSET |
39 | 35 | #define PTRACE_SETREGSET 0x4205 |
40 | 36 | #endif |
41 | | -#ifndef PTRACE_GET_THREAD_AREA |
42 | | -#define PTRACE_GET_THREAD_AREA 25 |
43 | | -#endif |
44 | | -#ifndef PTRACE_ARCH_PRCTL |
45 | | -#define PTRACE_ARCH_PRCTL 30 |
46 | | -#endif |
47 | | -#ifndef ARCH_GET_FS |
48 | | -#define ARCH_SET_GS 0x1001 |
49 | | -#define ARCH_SET_FS 0x1002 |
50 | | -#define ARCH_GET_FS 0x1003 |
51 | | -#define ARCH_GET_GS 0x1004 |
52 | | -#endif |
53 | | -#ifndef PTRACE_PEEKMTETAGS |
54 | | -#define PTRACE_PEEKMTETAGS 33 |
| 37 | +#ifndef PTRACE_GETVRREGS |
| 38 | +#define PTRACE_GETVRREGS (PT_COMMAND_MAX + 5) |
55 | 39 | #endif |
56 | | -#ifndef PTRACE_POKEMTETAGS |
57 | | -#define PTRACE_POKEMTETAGS 34 |
| 40 | +#ifndef PTRACE_GETVSRREGS |
| 41 | +#define PTRACE_GETVSRREGS (PT_COMMAND_MAX + 6) |
58 | 42 | #endif |
59 | 43 |
|
60 | | -#endif // liblldb_Host_linux_Ptrace_h_ |
| 44 | +#endif // liblldb_Host_aix_Ptrace_h_ |
0 commit comments