mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-26 09:07:38 +01:00
(unw_get_save_loc): Replace check for IA64_FLAG_SIGTRAMP with check against
c->sigcontext_loc. (Logical change 1.18)
This commit is contained in:
parent
563bccbf75
commit
83da1e6ac1
1 changed files with 2 additions and 6 deletions
|
@ -61,14 +61,10 @@ unw_get_save_loc (unw_cursor_t *cursor, int reg, unw_save_loc_t *sloc)
|
||||||
if (nat_loc >= c->rbs_top)
|
if (nat_loc >= c->rbs_top)
|
||||||
nat_loc = c->top_rnat_loc;
|
nat_loc = c->top_rnat_loc;
|
||||||
}
|
}
|
||||||
else if (c->pi.flags & IA64_FLAG_SIGTRAMP)
|
else if (c->sigcontext_loc)
|
||||||
{
|
{
|
||||||
/* NaT bit is saved in a sigcontext. */
|
/* NaT bit is saved in a sigcontext. */
|
||||||
ret = ia64_get (c, c->sp + 0x10 + SIGFRAME_ARG2_OFF, &sc_addr);
|
loc = c->sigcontext_loc + SIGCONTEXT_NAT_OFF;
|
||||||
if (ret < 0)
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
loc = sc_addr + SIGCONTEXT_NAT_OFF;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue