[Midnightbsd-cvs] mports [24916] trunk/devel/libunwind: update patchset
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Feb 3 13:16:36 EST 2019
Revision: 24916
http://svnweb.midnightbsd.org/mports/?rev=24916
Author: laffer1
Date: 2019-02-03 13:16:36 -0500 (Sun, 03 Feb 2019)
Log Message:
-----------
update patchset
Modified Paths:
--------------
trunk/devel/libunwind/Makefile
Added Paths:
-----------
trunk/devel/libunwind/files/patch-include_libunwind-aarch64.h
trunk/devel/libunwind/files/patch-include_libunwind__i.h
trunk/devel/libunwind/files/patch-src_aarch64_Ginit.c
trunk/devel/libunwind/files/patch-src_coredump___UCD__access__reg__freebsd.c
trunk/devel/libunwind/files/patch-src_ptrace___UPT__access__fpreg.c
Modified: trunk/devel/libunwind/Makefile
===================================================================
--- trunk/devel/libunwind/Makefile 2019-02-03 18:14:49 UTC (rev 24915)
+++ trunk/devel/libunwind/Makefile 2019-02-03 18:16:36 UTC (rev 24916)
@@ -4,6 +4,7 @@
PORTNAME= libunwind
PORTVERSION= 20170615 # This is the release date of libunwind 1.2.1
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= SAVANNAH
DISTNAME= ${PORTNAME}-1.2.1
Added: trunk/devel/libunwind/files/patch-include_libunwind-aarch64.h
===================================================================
--- trunk/devel/libunwind/files/patch-include_libunwind-aarch64.h (rev 0)
+++ trunk/devel/libunwind/files/patch-include_libunwind-aarch64.h 2019-02-03 18:16:36 UTC (rev 24916)
@@ -0,0 +1,11 @@
+--- include/libunwind-aarch64.h.orig 2018-06-15 23:58:09 UTC
++++ include/libunwind-aarch64.h
+@@ -177,7 +177,7 @@ typedef ucontext_t unw_tdep_context_t;
+
+ #define unw_tdep_getcontext(uc) (({ \
+ unw_tdep_context_t *unw_ctx = (uc); \
+- register uint64_t *unw_base asm ("x0") = (uint64_t*) unw_ctx->uc_mcontext.regs; \
++ register uint64_t *unw_base asm ("x0") = (uint64_t*) unw_ctx->uc_mcontext.mc_gpregs.gp_x; \
+ __asm__ __volatile__ ( \
+ "stp x0, x1, [%[base], #0]\n" \
+ "stp x2, x3, [%[base], #16]\n" \
Property changes on: trunk/devel/libunwind/files/patch-include_libunwind-aarch64.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/libunwind/files/patch-include_libunwind__i.h
===================================================================
--- trunk/devel/libunwind/files/patch-include_libunwind__i.h (rev 0)
+++ trunk/devel/libunwind/files/patch-include_libunwind__i.h 2019-02-03 18:16:36 UTC (rev 24916)
@@ -0,0 +1,14 @@
+--- include/libunwind_i.h.orig 2018-06-15 23:58:15 UTC
++++ include/libunwind_i.h
+@@ -86,6 +86,11 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ # error Host has unknown byte-order.
+ # endif
+ #endif
++#ifdef __FreeBSD__
++#define __BYTE_ORDER BYTE_ORDER
++#define __LITTLE_ENDIAN LITTLE_ENDIAN
++#define __BIG_ENDIAN BIG_ENDIAN
++#endif
+
+ #if defined(HAVE__BUILTIN_UNREACHABLE)
+ # define unreachable() __builtin_unreachable()
Property changes on: trunk/devel/libunwind/files/patch-include_libunwind__i.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/libunwind/files/patch-src_aarch64_Ginit.c
===================================================================
--- trunk/devel/libunwind/files/patch-src_aarch64_Ginit.c (rev 0)
+++ trunk/devel/libunwind/files/patch-src_aarch64_Ginit.c 2019-02-03 18:16:36 UTC (rev 24916)
@@ -0,0 +1,11 @@
+--- src/aarch64/Ginit.c.orig 2018-06-15 23:58:20 UTC
++++ src/aarch64/Ginit.c
+@@ -44,7 +44,7 @@ static inline void *
+ uc_addr (ucontext_t *uc, int reg)
+ {
+ if (reg >= UNW_AARCH64_X0 && reg <= UNW_AARCH64_V31)
+- return &uc->uc_mcontext.regs[reg];
++ return &uc->uc_mcontext.mc_gpregs.gp_x[reg];
+ else
+ return NULL;
+ }
Property changes on: trunk/devel/libunwind/files/patch-src_aarch64_Ginit.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/libunwind/files/patch-src_coredump___UCD__access__reg__freebsd.c
===================================================================
--- trunk/devel/libunwind/files/patch-src_coredump___UCD__access__reg__freebsd.c (rev 0)
+++ trunk/devel/libunwind/files/patch-src_coredump___UCD__access__reg__freebsd.c 2019-02-03 18:16:36 UTC (rev 24916)
@@ -0,0 +1,13 @@
+--- src/coredump/_UCD_access_reg_freebsd.c.orig 2018-06-16 00:05:10 UTC
++++ src/coredump/_UCD_access_reg_freebsd.c
+@@ -110,6 +110,10 @@ _UCD_access_reg (unw_addr_space_t as,
+ Debug(0, "bad regnum:%d\n", regnum);
+ return -UNW_EINVAL;
+ };
++#elif defined(UNW_TARGET_AARCH64)
++ if (regnum < 0 || regnum >= UNW_AARCH64_FPCR)
++ return -UNW_EINVAL;
++ *valp = ui->prstatus->pr_reg.x[regnum];
+ #else
+ #error Port me
+ #endif
Property changes on: trunk/devel/libunwind/files/patch-src_coredump___UCD__access__reg__freebsd.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/libunwind/files/patch-src_ptrace___UPT__access__fpreg.c
===================================================================
--- trunk/devel/libunwind/files/patch-src_ptrace___UPT__access__fpreg.c (rev 0)
+++ trunk/devel/libunwind/files/patch-src_ptrace___UPT__access__fpreg.c 2019-02-03 18:16:36 UTC (rev 24916)
@@ -0,0 +1,20 @@
+--- src/ptrace/_UPT_access_fpreg.c.orig 2018-06-15 23:58:03 UTC
++++ src/ptrace/_UPT_access_fpreg.c
+@@ -85,6 +85,8 @@ _UPT_access_fpreg (unw_addr_space_t as, unw_regnum_t r
+ memcpy(&fpreg.fpr_xacc[reg], val, sizeof(unw_fpreg_t));
+ #elif defined(__i386__)
+ memcpy(&fpreg.fpr_acc[reg], val, sizeof(unw_fpreg_t));
++#elif defined(__aarch64__)
++ memcpy(&fpreg.fp_q[reg], val, sizeof(unw_fpreg_t));
+ #else
+ #error Fix me
+ #endif
+@@ -95,6 +97,8 @@ _UPT_access_fpreg (unw_addr_space_t as, unw_regnum_t r
+ memcpy(val, &fpreg.fpr_xacc[reg], sizeof(unw_fpreg_t));
+ #elif defined(__i386__)
+ memcpy(val, &fpreg.fpr_acc[reg], sizeof(unw_fpreg_t));
++#elif defined(__aarch64__)
++ memcpy(val, &fpreg.fp_q[reg], sizeof(unw_fpreg_t));
+ #else
+ #error Fix me
+ #endif
Property changes on: trunk/devel/libunwind/files/patch-src_ptrace___UPT__access__fpreg.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list