1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-12-25 04:23:42 +01:00

(uc_addr): Allow (readonly) access to r0/nat0 to support ".save rp, r0" idiom.

(Logical change 1.55)
This commit is contained in:
hp.com!davidm 2003-02-26 08:33:57 +00:00
parent c503981c39
commit 95a55361c8

View file

@ -47,6 +47,8 @@ uc_addr (ucontext_t *uc, int reg)
switch (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_IP: addr = &uc->uc_mcontext.sc_br[0]; break;
case UNW_IA64_CFM: addr = &uc->uc_mcontext.sc_ar_pfs; 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; case UNW_IA64_AR_RNAT: addr = &uc->uc_mcontext.sc_ar_rnat; break;