File: sparc-fix-sigsegv-fault-stackpointer-definition.patch

package info (click to toggle)
libsigsegv 2.10-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,360 kB
  • ctags: 652
  • sloc: sh: 10,567; ansic: 3,632; makefile: 130
file content (14 lines) | stat: -rw-r--r-- 635 bytes parent folder | download
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]