Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Update catch_debugger.h

Commit
bb6d08323f23a39eb65dd86671e68f4f5d3f2d6c
Author
FX Coudert ·
Committer
GitHub
Parents
64a533551de5

Files · Download .tar.gz

Changes

 include/internal/catch_debugger.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/internal/catch_debugger.h b/include/internal/catch_debugger.h
index 65361c24..e6d071c6 100644
--- a/include/internal/catch_debugger.h
+++ b/include/internal/catch_debugger.h
@@ -27,6 +27,9 @@ namespace Catch{
         #define CATCH_TRAP() \
                 __asm__("li r0, 20\nsc\nnop\nli r0, 37\nli r4, 2\nsc\nnop\n" \
                 : : : "memory","r0","r3","r4" ) /* NOLINT */
+    #elif defined(__aarch64__)
+        // Backport of https://github.com/catchorg/Catch2/commit/a25c1a24af8bffd35727a888a307ff0280cf9387
+        #define CATCH_TRAP() __asm__(".inst 0xd4200000")
     #else
         #define CATCH_TRAP() __asm__("int $3\n" : : /* NOLINT */ )
     #endif