1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
Description: Fix the definition of SIGSEGV_FAULT_STACKPOINTER for sparc
The definition of SIGSEGV_FAULT_STACKPOINTER uses an outdated variable
identifier for the register window array. sparc V8+ and later renamed
this array from gregs to mc_gregs. This patch fixes an FTBFS.
.
--- libsigsegv-2.9.orig/src/fault-linux-sparc.h
+++ libsigsegv-2.9/src/fault-linux-sparc.h
@@ -27,4 +27,4 @@
(see also <asm/sigcontext.h>)
are quite different types. */
-#define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.gregs[REG_O6]
+#define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.mc_gregs[REG_O6]
|