OLD | NEW |
1 // Copyright 2014 The Crashpad Authors. All rights reserved. | 1 // Copyright 2014 The Crashpad Authors. All rights reserved. |
2 // | 2 // |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
6 // | 6 // |
7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
8 // | 8 // |
9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
(...skipping 21 matching lines...) Expand all Loading... |
32 // 10.9 SDK | 32 // 10.9 SDK |
33 | 33 |
34 #ifndef EXC_GUARD | 34 #ifndef EXC_GUARD |
35 #define EXC_GUARD 12 | 35 #define EXC_GUARD 12 |
36 #endif | 36 #endif |
37 | 37 |
38 #ifndef EXC_MASK_GUARD | 38 #ifndef EXC_MASK_GUARD |
39 #define EXC_MASK_GUARD (1 << EXC_GUARD) | 39 #define EXC_MASK_GUARD (1 << EXC_GUARD) |
40 #endif | 40 #endif |
41 | 41 |
42 // Don’t expose EXC_MASK_ALL or EXC_MASK_VALID at all, because their definitions | 42 // 10.11 SDK |
43 // vary with SDK, and older kernels will reject values that they don’t | 43 |
44 // understand. Instead, use crashpad::ExcMaskAll(), which computes the correct | 44 #ifndef EXC_CORPSE_NOTIFY |
45 // value of EXC_MASK_ALL for the running system. | 45 #define EXC_CORPSE_NOTIFY 13 |
| 46 #endif |
| 47 |
| 48 #ifndef EXC_MASK_CORPSE_NOTIFY |
| 49 #define EXC_MASK_CORPSE_NOTIFY (1 << EXC_CORPSE_NOTIFY) |
| 50 #endif |
| 51 |
| 52 // Don’t expose EXC_MASK_ALL at all, because its definition varies with SDK, and |
| 53 // older kernels will reject values that they don’t understand. Instead, use |
| 54 // crashpad::ExcMaskAll(), which computes the correct value of EXC_MASK_ALL for |
| 55 // the running system. |
46 #undef EXC_MASK_ALL | 56 #undef EXC_MASK_ALL |
47 #undef EXC_MASK_VALID | |
48 | 57 |
49 #if defined(__i386__) || defined(__x86_64__) | 58 #if defined(__i386__) || defined(__x86_64__) |
50 | 59 |
51 // <mach/i386/exception.h> | 60 // <mach/i386/exception.h> |
52 | 61 |
53 // 10.9 SDK | 62 // 10.11 SDK |
54 | 63 |
55 #if EXC_TYPES_COUNT > 13 // Definition varies with SDK | 64 #if EXC_TYPES_COUNT > 14 // Definition varies with SDK |
56 #error Update this file for new exception types | 65 #error Update this file for new exception types |
57 #elif EXC_TYPES_COUNT != 13 | 66 #elif EXC_TYPES_COUNT != 14 |
58 #undef EXC_TYPES_COUNT | 67 #undef EXC_TYPES_COUNT |
59 #define EXC_TYPES_COUNT 13 | 68 #define EXC_TYPES_COUNT 14 |
60 #endif | 69 #endif |
61 | 70 |
62 // <mach/i386/thread_status.h> | 71 // <mach/i386/thread_status.h> |
63 | 72 |
64 // 10.6 SDK | 73 // 10.6 SDK |
65 // | 74 // |
66 // Earlier versions of this SDK didn’t have AVX definitions. They didn’t appear | 75 // Earlier versions of this SDK didn’t have AVX definitions. They didn’t appear |
67 // until the version of the 10.6 SDK that shipped with Xcode 4.2, although | 76 // until the version of the 10.6 SDK that shipped with Xcode 4.2, although |
68 // versions of this SDK appeared with Xcode releases as early as Xcode 3.2. | 77 // versions of this SDK appeared with Xcode releases as early as Xcode 3.2. |
69 // Similarly, the kernel didn’t handle AVX state until Mac OS X 10.6.8 | 78 // Similarly, the kernel didn’t handle AVX state until Mac OS X 10.6.8 |
(...skipping 18 matching lines...) Expand all Loading... |
88 | 97 |
89 // <mach/thread_status.h> | 98 // <mach/thread_status.h> |
90 | 99 |
91 // 10.8 SDK | 100 // 10.8 SDK |
92 | 101 |
93 #ifndef THREAD_STATE_FLAVOR_LIST_10_9 | 102 #ifndef THREAD_STATE_FLAVOR_LIST_10_9 |
94 #define THREAD_STATE_FLAVOR_LIST_10_9 129 | 103 #define THREAD_STATE_FLAVOR_LIST_10_9 129 |
95 #endif | 104 #endif |
96 | 105 |
97 #endif // CRASHPAD_COMPAT_MAC_MACH_MACH_H_ | 106 #endif // CRASHPAD_COMPAT_MAC_MACH_MACH_H_ |
OLD | NEW |