bug-libsigsegv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-libsigsegv] [PATCH] fix compile error on sparc64


From: Waldemar Brodkorb
Subject: [bug-libsigsegv] [PATCH] fix compile error on sparc64
Date: Mon, 30 Nov 2015 17:22:28 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

Tested with Buildroot for sparc/sparc64 targets.

Signed-off-by: Waldemar Brodkorb <address@hidden>
---
 src/fault-linux-sparc.h |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/fault-linux-sparc.h b/src/fault-linux-sparc.h
index 2e14153..00dc8bc 100644
--- a/src/fault-linux-sparc.h
+++ b/src/fault-linux-sparc.h
@@ -27,4 +27,8 @@
    (see also <asm/sigcontext.h>)
    are quite different types.  */
 
+#if __WORDSIZE == 64
+#define SIGSEGV_FAULT_STACKPOINTER  ((ucontext_t *) 
ucp)->uc_mcontext.mc_gregs[REG_O6]
+#else
 #define SIGSEGV_FAULT_STACKPOINTER  ((ucontext_t *) 
ucp)->uc_mcontext.gregs[REG_O6]
+#endif
-- 
1.7.10.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]