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

Removed debug break support for PowerPC Macs

Commit
5c8ea03cc85a750d4d8fdd9da1ef02f645a17cac
Author
Phil Nash ·
Parents
242022460d5b

Files · Download .tar.gz

Changes

 include/internal/catch_debugger.h | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/include/internal/catch_debugger.h b/include/internal/catch_debugger.h
index 15a4c64b..ddb37097 100644
--- a/include/internal/catch_debugger.h
+++ b/include/internal/catch_debugger.h
@@ -21,15 +21,7 @@ namespace Catch{
 
 #ifdef CATCH_PLATFORM_MAC
 
-    // The following code snippet based on:
-    // http://cocoawithlove.com/2008/03/break-into-debugger.html
-    #if defined(__ppc64__) || defined(__ppc__)
-        #define CATCH_TRAP() \
-                __asm__("li r0, 20\nsc\nnop\nli r0, 37\nli r4, 2\nsc\nnop\n" \
-                : : : "memory","r0","r3","r4" )
-    #else
-        #define CATCH_TRAP() __asm__("int $3\n" : : )
-    #endif
+    #define CATCH_TRAP() __asm__("int $3\n" : : )
 
 #elif defined(CATCH_PLATFORM_LINUX)
     // If we can use inline assembler, do it because this allows us to break