Source: gmt
Severity: normal
Tags: patch
User: [email protected]
Usertags: riscv64 sh4

Hi!

The attached patch adds build support for riscv64 and sh4.

Please include it in the next upload.

Thanks,
Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [email protected]
`. `'   Freie Universitaet Berlin - [email protected]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
Description: Add build support for riscv64 and sh4
 Defines UC_IP() on riscv64 and sh4 so that gmt can be built on
 these targets.
 .
Author: John Paul Adrian <[email protected]>

---

Forwarded: https://github.com/GenericMappingTools/gmt/pull/3155
Last-Update: 2020-04-23

Index: gmt-6.0.0+dfsg/src/common_sighandler.c
===================================================================
--- gmt-6.0.0+dfsg.orig/src/common_sighandler.c
+++ gmt-6.0.0+dfsg/src/common_sighandler.c
@@ -86,8 +86,12 @@ void backtrace_symbols_fd(void *const *b
 #  define UC_IP(uc) ((void *) (uc)->uc_mcontext.sc_iaoq[0])
 # elif defined(__m68k__)
 #  define UC_IP(uc) ((void *) (uc)->uc_mcontext.gregs[R_PC])
+# elif defined(__riscv)
+#  define UC_IP(uc) ((void *) (uc)->uc_mcontext.__gregs[REG_PC])
 # elif defined(__s390__)
 #  define UC_IP(uc) ((void *) (uc)->uc_mcontext.psw.addr)
+# elif defined( __sh4__)
+#  define UC_IP(uc) ((void *) (uc)->uc_mcontext.pc)
 # elif defined(__sparc__)
 #  if defined (__arch64__)
 #   define UC_IP(uc) ((void *) (uc)->uc_mcontext.mc_gregs[MC_PC])
_______________________________________________
Pkg-grass-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to