aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang/pypy/files/patch-rpython_rlib_rvmprof_src_vmprof__config.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/lang/pypy/files/patch-rpython_rlib_rvmprof_src_vmprof__config.h b/lang/pypy/files/patch-rpython_rlib_rvmprof_src_vmprof__config.h
new file mode 100644
index 000000000000..811a1568ffec
--- /dev/null
+++ b/lang/pypy/files/patch-rpython_rlib_rvmprof_src_vmprof__config.h
@@ -0,0 +1,10 @@
+--- rpython/rlib/rvmprof/src/vmprof_config.h.orig 2016-03-19 14:27:46 UTC
++++ rpython/rlib/rvmprof/src/vmprof_config.h
+@@ -1,6 +1,6 @@
+ #define HAVE_SYS_UCONTEXT_H
+ #if defined(__FreeBSD__) || defined(__APPLE__)
+-#define PC_FROM_UCONTEXT uc_mcontext.mc_rip
++#define PC_FROM_UCONTEXT uc_mcontext.mc_eip
+ #else
+ #define PC_FROM_UCONTEXT uc_mcontext.gregs[REG_RIP]
+ #endif