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

summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorSergey Fedorov2023-01-14 06:03:30 +0700
committerGitHub2023-01-14 00:03:30 +0100
commitb5be6420427331c2bf1160fa7eedf0f5f1145b6b (patch)
tree71ecb96619963185a6b9bbdb03cf45ffc2e97080 /src
parentd59572f46fb4b9cbd720dd4298bf97931fc33c3b (diff)
downloadcatch3-b5be6420427331c2bf1160fa7eedf0f5f1145b6b.tar.gz
catch_debugger.hpp: restore PPC support (#2619)
Diffstat (limited to 'src')
-rw-r--r--src/catch2/internal/catch_debugger.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/catch2/internal/catch_debugger.hpp b/src/catch2/internal/catch_debugger.hpp
index 30063d1f..25c5a260 100644
--- a/src/catch2/internal/catch_debugger.hpp
+++ b/src/catch2/internal/catch_debugger.hpp
@@ -19,7 +19,10 @@ namespace Catch {
#if defined(__i386__) || defined(__x86_64__)
#define CATCH_TRAP() __asm__("int $3\n" : : ) /* NOLINT */
#elif defined(__aarch64__)
- #define CATCH_TRAP() __asm__(".inst 0xd43e0000")
+ #define CATCH_TRAP() __asm__(".inst 0xd43e0000")
+ #elif defined(__POWERPC__)
+ #define CATCH_TRAP() __asm__("li r0, 20\nsc\nnop\nli r0, 37\nli r4, 2\nsc\nnop\n" \
+ : : : "memory","r0","r3","r4" ) /* NOLINT */
#endif
#elif defined(CATCH_PLATFORM_IPHONE)