Skip to content

Commit 61bdaf7

Browse files
Modified specific to AIX
1 parent 426874a commit 61bdaf7

File tree

1 file changed

+11
-27
lines changed

1 file changed

+11
-27
lines changed

lldb/include/lldb/Host/aix/Ptrace.h

Lines changed: 11 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8,53 +8,37 @@
88

99
// This file defines ptrace functions & structures
1010

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_
1313

1414
#include <sys/ptrace.h>
1515

16-
#ifndef __GLIBC__
17-
typedef int __ptrace_request;
18-
#endif
19-
2016
#define DEBUG_PTRACE_MAXBYTES 20
2117

2218
// Support ptrace extensions even when compiled without required kernel support
2319
#ifndef PTRACE_GETREGS
24-
#define PTRACE_GETREGS 12
20+
#define PTRACE_GETREGS (PT_COMMAND_MAX + 1)
2521
#endif
2622
#ifndef PTRACE_SETREGS
27-
#define PTRACE_SETREGS 13
23+
#define PTRACE_SETREGS (PT_COMMAND_MAX + 2)
2824
#endif
2925
#ifndef PTRACE_GETFPREGS
30-
#define PTRACE_GETFPREGS 14
26+
#define PTRACE_GETFPREGS (PT_COMMAND_MAX + 3)
3127
#endif
3228
#ifndef PTRACE_SETFPREGS
33-
#define PTRACE_SETFPREGS 15
29+
#define PTRACE_SETFPREGS (PT_COMMAND_MAX + 4)
3430
#endif
3531
#ifndef PTRACE_GETREGSET
3632
#define PTRACE_GETREGSET 0x4204
3733
#endif
3834
#ifndef PTRACE_SETREGSET
3935
#define PTRACE_SETREGSET 0x4205
4036
#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)
5539
#endif
56-
#ifndef PTRACE_POKEMTETAGS
57-
#define PTRACE_POKEMTETAGS 34
40+
#ifndef PTRACE_GETVSRREGS
41+
#define PTRACE_GETVSRREGS (PT_COMMAND_MAX + 6)
5842
#endif
5943

60-
#endif // liblldb_Host_linux_Ptrace_h_
44+
#endif // liblldb_Host_aix_Ptrace_h_

0 commit comments

Comments
 (0)