runtime: handle Alpha GNU/Linux in getSiginfo
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 26 Jul 2017 20:20:22 +0000 (20:20 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 26 Jul 2017 20:20:22 +0000 (20:20 +0000)
    Patch by Uros Bizjak.

    Reviewed-on: https://go-review.googlesource.com/51370

From-SVN: r250588

gcc/go/gofrontend/MERGE
libgo/runtime/go-signal.c

index 78905fe39c4779a86b6267ea361934354968317e..722c0a1ab063011e0600c552e1027a34bcebdd83 100644 (file)
@@ -1,4 +1,4 @@
-61ce3b80ab20cb1f16960c1784bc0937abaa440a
+feb26fbb5065eadfe1f8610e9b74b3749a87c52d
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index d274865074f7094d5006ba995300166e78c8b41a..8c7ecbae3b5da3208b48500452a4dcab77b119c6 100644 (file)
@@ -215,6 +215,11 @@ getSiginfo(siginfo_t *info, void *context __attribute__((unused)))
        ret.sigpc = ((ucontext_t*)(context))->uc_mcontext.gregs[REG_EIP];
   #endif
 #endif
+#ifdef __alpha__
+  #ifdef __linux__
+       ret.sigpc = ((ucontext_t*)(context))->uc_mcontext.sc_pc;
+  #endif
+#endif
 #ifdef __PPC__
   #ifdef __linux__
        ret.sigpc = ((ucontext_t*)(context))->uc_mcontext.regs->nip;