diff --git a/lldb/test/API/macosx/arm-corefile-regctx/create-arm-corefiles.cpp b/lldb/test/API/macosx/arm-corefile-regctx/create-arm-corefiles.cpp index 9f8dc65f8893..5517a2397ae5 100644 --- a/lldb/test/API/macosx/arm-corefile-regctx/create-arm-corefiles.cpp +++ b/lldb/test/API/macosx/arm-corefile-regctx/create-arm-corefiles.cpp @@ -1,10 +1,25 @@ #include -#include #include #include #include #include + +// Normally these are picked up by including +// but that does a compile time check for the build host arch and +// only defines the ARM register context constants when building on +// an arm system. We're creating fake corefiles, and might be +// creating them on an intel system. +#define ARM_THREAD_STATE 1 +#define ARM_THREAD_STATE_COUNT 17 +#define ARM_EXCEPTION_STATE 3 +#define ARM_EXCEPTION_STATE_COUNT 3 +#define ARM_THREAD_STATE64 6 +#define ARM_THREAD_STATE64_COUNT 68 +#define ARM_EXCEPTION_STATE64 7 +#define ARM_EXCEPTION_STATE64_COUNT 4 + + union uint32_buf { uint8_t bytebuf[4]; uint32_t val;