diff options
| author | Martin Hořeňovský | 2022-05-15 23:15:07 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2022-05-15 23:22:00 +0200 |
| commit | 07bec74096d91e68efa97587554004740d9aa32a (patch) | |
| tree | f2105914eabda1e214ab6937c1ff5553fd585a0f | |
| parent | 316025a0d87b12ca880255f7b2082e86beeeeac4 (diff) | |
| download | catch3-07bec74096d91e68efa97587554004740d9aa32a.tar.gz | |
Use better instruction for CATCH_TRAP on ARM Macs
The old instruction would cause the debugger to be stuck at the
triggering source line forever, while the new one should have the
expected semantics, where the debugger can then single-step,
continue. or generally do things, afterwards.
Closes #2422
| -rw-r--r-- | src/catch2/internal/catch_debugger.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/catch2/internal/catch_debugger.hpp b/src/catch2/internal/catch_debugger.hpp index c300da72..ede291d7 100644 --- a/src/catch2/internal/catch_debugger.hpp +++ b/src/catch2/internal/catch_debugger.hpp @@ -19,7 +19,7 @@ namespace Catch { #if defined(__i386__) || defined(__x86_64__) #define CATCH_TRAP() __asm__("int $3\n" : : ) /* NOLINT */ #elif defined(__aarch64__) - #define CATCH_TRAP() __asm__(".inst 0xd4200000") + #define CATCH_TRAP() __asm__(".inst 0xd43e0000") #endif #elif defined(CATCH_PLATFORM_IPHONE) |