File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
lldb/test/API/macosx/arm-corefile-regctx Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 1
1
#include < mach-o/loader.h>
2
- #include < mach/thread_status.h>
3
2
#include < stdio.h>
4
3
#include < stdlib.h>
5
4
#include < string>
6
5
#include < vector>
7
6
7
+
8
+ // Normally these are picked up by including <mach/thread_status.h>
9
+ // but that does a compile time check for the build host arch and
10
+ // only defines the ARM register context constants when building on
11
+ // an arm system. We're creating fake corefiles, and might be
12
+ // creating them on an intel system.
13
+ #define ARM_THREAD_STATE 1
14
+ #define ARM_THREAD_STATE_COUNT 17
15
+ #define ARM_EXCEPTION_STATE 3
16
+ #define ARM_EXCEPTION_STATE_COUNT 3
17
+ #define ARM_THREAD_STATE64 6
18
+ #define ARM_THREAD_STATE64_COUNT 68
19
+ #define ARM_EXCEPTION_STATE64 7
20
+ #define ARM_EXCEPTION_STATE64_COUNT 4
21
+
22
+
8
23
union uint32_buf {
9
24
uint8_t bytebuf[4 ];
10
25
uint32_t val;
You can’t perform that action at this time.
0 commit comments