Skip to content

Commit

Permalink
Specialize CATCH_TRAP() for iOS + thumb instruction set combo
Browse files Browse the repository at this point in the history
Fixes #1862
  • Loading branch information
horenmar committed Feb 15, 2020
1 parent 200b8b6 commit 81d52c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/internal/catch_debugger.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ namespace Catch {
#define CATCH_TRAP() __asm__("int $3")
#elif defined(__aarch64__)
#define CATCH_TRAP() __asm__(".inst 0xd4200000")
#elif defined(__arm__)
#elif defined(__arm__) && !defined(__thumb__)
#define CATCH_TRAP() __asm__(".inst 0xe7f001f0")
#elif defined(__arm__) && defined(__thumb__)
#define CATCH_TRAP() __asm__(".inst 0xde01")
#endif

#elif defined(CATCH_PLATFORM_LINUX)
Expand Down

0 comments on commit 81d52c4

Please sign in to comment.