From 007805c65a52897bc5bfce022283f546ac76f1a4 Mon Sep 17 00:00:00 2001
From: "mostang.com!davidm" <mostang.com!davidm>
Date: Sat, 16 Nov 2002 06:50:04 +0000
Subject: [PATCH] (access_nat) [UNW_LOCAL_ONLY]: Adjust for fact that
 context-pointer is now stored 	in c->as_arg, which is a "void *".

(Logical change 1.27)
---
 src/ia64/regs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/ia64/regs.c b/src/ia64/regs.c
index bfd19b32..e73a5ee7 100644
--- a/src/ia64/regs.c
+++ b/src/ia64/regs.c
@@ -181,8 +181,9 @@ access_nat (struct ia64_cursor *c, unw_word_t loc, unw_word_t reg_loc,
 	     general register is saved to another general
 	     register.  */
 #ifdef UNW_LOCAL_ONLY
+	  ucontext_t *uc = c->as_arg;
 	  mask = ((unw_word_t) 1) << reg;
-	  nat_loc = (unw_word_t) &c->uc->uc_mcontext.sc_nat;
+	  nat_loc = (unw_word_t) &uc->uc_mcontext.sc_nat;
 #else
 	  if (write)
 	    ret = ia64_put (c, IA64_REG_LOC (c, UNW_IA64_NAT + reg), *valp);