sync ports with The Matrix
This commit is contained in:
parent
ec769495ab
commit
f5034afcba
3108 changed files with 91999 additions and 80269 deletions
|
@ -3,9 +3,9 @@ https://savannah.gnu.org/bugs/?58829
|
|||
Index: src/fault-openbsd-powerpc.h
|
||||
--- src/fault-openbsd-powerpc.h.orig
|
||||
+++ src/fault-openbsd-powerpc.h
|
||||
@@ -17,7 +17,14 @@
|
||||
@@ -25,9 +25,16 @@
|
||||
|
||||
#include "fault-openbsd.h"
|
||||
#else /* 32-bit */
|
||||
|
||||
-/* See the definition of 'struct sigcontext' and 'struct trapframe' in
|
||||
- openbsd-src/sys/arch/powerpc/include/signal.h. */
|
||||
|
@ -18,5 +18,7 @@ Index: src/fault-openbsd-powerpc.h
|
|||
+#ifdef __powerpc64__
|
||||
+#define SIGSEGV_FAULT_STACKPOINTER scp->sc_sp
|
||||
+#else
|
||||
#define SIGSEGV_FAULT_STACKPOINTER scp->sc_frame.fixreg[1]
|
||||
# define SIGSEGV_FAULT_STACKPOINTER scp->sc_frame.fixreg[1]
|
||||
+#endif
|
||||
|
||||
#endif
|
||||
|
|
12
devel/libsigsegv/patches/patch-src_handler-unix_c
Normal file
12
devel/libsigsegv/patches/patch-src_handler-unix_c
Normal file
|
@ -0,0 +1,12 @@
|
|||
Index: src/handler-unix.c
|
||||
--- src/handler-unix.c.orig
|
||||
+++ src/handler-unix.c
|
||||
@@ -382,7 +382,7 @@ install_for (int sig)
|
||||
struct sigaction action;
|
||||
|
||||
#ifdef SIGSEGV_FAULT_ADDRESS_FROM_SIGINFO
|
||||
- action.sa_sigaction = &sigsegv_handler;
|
||||
+ action.sa_sigaction = (void (*) (int, siginfo_t *, void *)) &sigsegv_handler;
|
||||
#else
|
||||
action.sa_handler = (void (*) (int)) &sigsegv_handler;
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue