Line 0
Link Here
|
|
|
1 |
--- src/common_sighandler.c.orig 2019-02-25 06:44:38 UTC |
2 |
+++ src/common_sighandler.c |
3 |
@@ -69,6 +69,8 @@ void backtrace_symbols_fd(void *const *buffer, int siz |
4 |
# define UC_IP(uc) ((void *) (uc)->uc_mcontext.mc_rip) |
5 |
# elif defined( __arm__) |
6 |
# define UC_IP(uc) ((void *) (uc)->uc_mcontext.arm_pc) |
7 |
+# elif defined( __ppc__) |
8 |
+# define UC_IP(uc) ((void *) (uc)->uc_mcontext.mc_srr0) |
9 |
# else |
10 |
# define UC_IP(uc) ((void *) (uc)->uc_mcontext.mc_eip) |
11 |
# endif |