mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
graphics/gmt: fix build on armv7
Fix wrong code for armv7 mcontext_t PC retrieval. Approved by: portmgr (build fix blanket) MFH: 2023Q3
This commit is contained in:
parent
1c21936e01
commit
a5783589a6
11
graphics/gmt/files/patch-src_gmt__common__sighandler.c
Normal file
11
graphics/gmt/files/patch-src_gmt__common__sighandler.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/gmt_common_sighandler.c.orig 2023-07-28 19:57:48 UTC
|
||||
+++ src/gmt_common_sighandler.c
|
||||
@@ -84,7 +84,7 @@ void backtrace_symbols_fd(void *const *buffer, int siz
|
||||
# ifdef __x86_64__
|
||||
# define UC_IP(uc) ((void *) (uc)->uc_mcontext.mc_rip)
|
||||
# elif defined( __arm__)
|
||||
-# define UC_IP(uc) ((void *) (uc)->uc_mcontext.arm_pc)
|
||||
+# define UC_IP(uc) ((void *) (uc)->uc_mcontext.__gregs[_REG_PC])
|
||||
# elif defined( __aarch64__)
|
||||
# define UC_IP(uc) ((void *) (uc)->uc_mcontext.mc_gpregs.gp_elr)
|
||||
# elif defined(__ppc__)
|
Loading…
Reference in New Issue
Block a user