From 95a55361c8b95240325128808a2c7e8e09c65316 Mon Sep 17 00:00:00 2001 From: "hp.com!davidm" Date: Wed, 26 Feb 2003 08:33:57 +0000 Subject: [PATCH] (uc_addr): Allow (readonly) access to r0/nat0 to support ".save rp, r0" idiom. (Logical change 1.55) --- src/ia64/Ginit-ia64.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ia64/Ginit-ia64.c b/src/ia64/Ginit-ia64.c index b5ff7647..2c30370e 100644 --- a/src/ia64/Ginit-ia64.c +++ b/src/ia64/Ginit-ia64.c @@ -47,6 +47,8 @@ uc_addr (ucontext_t *uc, int reg) switch (reg) { + case UNW_IA64_GR + 0: addr = &unw.r0; break; + case UNW_IA64_NAT + 0: addr = &unw.r0; break; case UNW_IA64_IP: addr = &uc->uc_mcontext.sc_br[0]; break; case UNW_IA64_CFM: addr = &uc->uc_mcontext.sc_ar_pfs; break; case UNW_IA64_AR_RNAT: addr = &uc->uc_mcontext.sc_ar_rnat; break;