Skip to content

Commit 0c0aff6

Browse files
authored
Merge pull request bombela#49 from ruipires/master
adds support for ppc architecture
2 parents ddf01ed + 82de54d commit 0c0aff6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: backward.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -1951,6 +1951,8 @@ class SignalHandling {
19511951
error_addr = reinterpret_cast<void*>(uctx->uc_mcontext.gregs[REG_EIP]);
19521952
#elif defined(__arm__)
19531953
error_addr = reinterpret_cast<void*>(uctx->uc_mcontext.arm_pc);
1954+
#elif defined(__ppc__) || defined(__powerpc) || defined(__powerpc__) || defined(__POWERPC__)
1955+
error_addr = reinterpret_cast<void*>(uctx->uc_mcontext.regs->nip);
19541956
#else
19551957
# warning ":/ sorry, ain't know no nothing none not of your architecture!"
19561958
#endif

0 commit comments

Comments
 (0)