Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorPhil Nash2017-04-25 12:27:26 +0100
committerPhil Nash2017-04-25 12:27:26 +0100
commit5c8ea03cc85a750d4d8fdd9da1ef02f645a17cac (patch)
tree486fdf6486258ab6d2d56da139c044667e918a48 /include
parent242022460d5b466358fcab5e9ca884f2f7d99c6a (diff)
downloadcatch3-5c8ea03cc85a750d4d8fdd9da1ef02f645a17cac.tar.gz
Removed debug break support for PowerPC Macs
Diffstat (limited to 'include')
-rw-r--r--include/internal/catch_debugger.h10
1 files changed, 1 insertions, 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