mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
catch_debugger.h - implement break into debugger assembler instructions for iOS
This commit is contained in:
parent
123b449f8d
commit
ac83087bc2
@ -19,6 +19,17 @@ namespace Catch {
|
|||||||
|
|
||||||
#define CATCH_TRAP() __asm__("int $3\n" : : ) /* NOLINT */
|
#define CATCH_TRAP() __asm__("int $3\n" : : ) /* NOLINT */
|
||||||
|
|
||||||
|
#elif defined(CATCH_PLATFORM_IPHONE)
|
||||||
|
|
||||||
|
// use inline assembler
|
||||||
|
#if defined(__i386__) || defined(__x86_64__)
|
||||||
|
#define CATCH_TRAP() __asm__("int $3")
|
||||||
|
#elif defined(__aarch64__)
|
||||||
|
#define CATCH_TRAP() __asm__(".inst 0xd4200000")
|
||||||
|
#elif defined(__arm__)
|
||||||
|
#define CATCH_TRAP() __asm__(".inst 0xe7f001f0")
|
||||||
|
#endif
|
||||||
|
|
||||||
#elif defined(CATCH_PLATFORM_LINUX)
|
#elif defined(CATCH_PLATFORM_LINUX)
|
||||||
// If we can use inline assembler, do it because this allows us to break
|
// If we can use inline assembler, do it because this allows us to break
|
||||||
// directly at the location of the failing check instead of breaking inside
|
// directly at the location of the failing check instead of breaking inside
|
||||||
|
Loading…
Reference in New Issue
Block a user