Skip to content

Commit beb1399

Browse files
committed
Fix CI failure - this depended on constants only defined on arm64 macs
(cherry picked from commit 7777b30)
1 parent 25d7c28 commit beb1399

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

lldb/test/API/macosx/arm-corefile-regctx/create-arm-corefiles.cpp

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
11
#include <mach-o/loader.h>
2-
#include <mach/thread_status.h>
32
#include <stdio.h>
43
#include <stdlib.h>
54
#include <string>
65
#include <vector>
76

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+
823
union uint32_buf {
924
uint8_t bytebuf[4];
1025
uint32_t val;

0 commit comments

Comments
 (0)