summaryrefslogtreecommitdiff
path: root/devel/libunwind/files/patch-src_aarch64_Ginit.c
blob: 9a5cd8ffa026c394c6505dae4f6b45387039da23 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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;
 }