-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpatch-m4-use-older-regnames-on-tiger.diff
29 lines (23 loc) · 1.36 KB
/
patch-m4-use-older-regnames-on-tiger.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- ./lib/sigsegv.c.orig 2021-05-29 12:41:18.000000000 -0700
+++ ./lib/sigsegv.c 2021-05-29 12:43:06.000000000 -0700
@@ -562,7 +562,7 @@
- 'ucontext_t' and 'struct __darwin_ucontext' in <sys/_types/_ucontext.h>,
- 'struct __darwin_mcontext64' in <i386/_mcontext.h>, and
- 'struct __darwin_x86_thread_state64' in <mach/i386/_structs.h>. */
-# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext->__ss.__rsp
+# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext->ss.rsp
# elif defined __i386__
@@ -570,7 +570,7 @@
- 'ucontext_t' and 'struct __darwin_ucontext' in <sys/_types/_ucontext.h>,
- 'struct __darwin_mcontext32' in <i386/_mcontext.h>, and
- 'struct __darwin_i386_thread_state' in <mach/i386/_structs.h>. */
-# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext->__ss.__esp
+# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext->ss.esp
# elif defined __arm64__
@@ -586,7 +586,7 @@
- 'ucontext_t' and 'struct __darwin_ucontext' in <sys/_structs.h>,
- 'struct __darwin_mcontext' in <ppc/_structs.h>, and
- 'struct __darwin_ppc_thread_state' in <mach/ppc/_structs.h>. */
-# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext->__ss.__r1
+# define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext->ss.r1
# endif