mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-05 01:09:27 +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:
parent
c503981c39
commit
95a55361c8
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue