Skip to content

Commit

Permalink
Add support for Apple Silicon
Browse files Browse the repository at this point in the history
Fixes #200.
  • Loading branch information
Philanatidae committed Jan 3, 2021
1 parent 27a8900 commit 72970bf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backward.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4157,7 +4157,11 @@ class SignalHandling {
#elif defined(__arm__)
error_addr = reinterpret_cast<void *>(uctx->uc_mcontext.arm_pc);
#elif defined(__aarch64__)
error_addr = reinterpret_cast<void *>(uctx->uc_mcontext.pc);
#if defined(__APPLE__)
error_addr = reinterpret_cast<void *>(uctx->uc_mcontext->__ss.__pc);
#elif
error_addr = reinterpret_cast<void *>(uctx->uc_mcontext.pc);
#endif
#elif defined(__mips__)
error_addr = reinterpret_cast<void *>(
reinterpret_cast<struct sigcontext *>(&uctx->uc_mcontext)->sc_pc);
Expand Down

0 comments on commit 72970bf

Please sign in to comment.