File tree Expand file tree Collapse file tree 1 file changed +21
-5
lines changed
src/common/android/include/sys Expand file tree Collapse file tree 1 file changed +21
-5
lines changed Original file line number Diff line number Diff line change 34
34
// glibc) and therefore avoid doing otherwise awkward #ifdefs in the code.
35
35
// The following quirks are currently handled by this file:
36
36
// - i386: Use the Android NDK but alias user_fxsr_struct > user_fpxregs_struct.
37
- // - aarch64: Add missing <stdint.h> include .
37
+ // - aarch64: Add missing user_regs_struct and user_fpsimd_struct structs .
38
38
// - Other platforms: Just use the Android NDK unchanged.
39
39
40
40
// TODO(primiano): remove these changes after Chromium has stably rolled to
41
41
// an NDK with the appropriate fixes.
42
42
43
- #ifdef __aarch64__
44
- #include <stdint.h>
45
- #endif // __aarch64__
46
-
47
43
#include_next <sys/user.h>
48
44
49
45
#ifdef __i386__
@@ -56,4 +52,24 @@ typedef struct user_fxsr_struct user_fpxregs_struct;
56
52
#endif // __cplusplus
57
53
#endif // __i386__
58
54
55
+ #ifdef __aarch64__
56
+ #ifdef __cplusplus
57
+ extern "C" {
58
+ #endif // __cplusplus
59
+ struct user_regs_struct {
60
+ __u64 regs [31 ];
61
+ __u64 sp ;
62
+ __u64 pc ;
63
+ __u64 pstate ;
64
+ };
65
+ struct user_fpsimd_struct {
66
+ __uint128_t vregs [32 ];
67
+ __u32 fpsr ;
68
+ __u32 fpcr ;
69
+ };
70
+ #ifdef __cplusplus
71
+ } // extern "C"
72
+ #endif // __cplusplus
73
+ #endif // __aarch64__
74
+
59
75
#endif // GOOGLE_BREAKPAD_COMMON_ANDROID_INCLUDE_SYS_USER_H
You can’t perform that action at this time.
0 commit comments