mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-26 17:17:39 +01:00
(unw_get_save_loc): Adjust for fact that context pointer is now stored in
c->as_arg, which is a "void *". (Logical change 1.27)
This commit is contained in:
parent
09eaf30ca4
commit
22e898a099
1 changed files with 2 additions and 1 deletions
|
@ -49,7 +49,8 @@ unw_get_save_loc (unw_cursor_t *cursor, int reg, unw_save_loc_t *sloc)
|
||||||
else if (reg >= 4 && reg <= 7)
|
else if (reg >= 4 && reg <= 7)
|
||||||
{
|
{
|
||||||
#ifdef UNW_LOCAL_ONLY
|
#ifdef UNW_LOCAL_ONLY
|
||||||
loc = c->uc->uc_mcontext.sc_nat;
|
ucontext_t *uc = c->as_arg;
|
||||||
|
loc = uc->uc_mcontext.sc_nat;
|
||||||
#else
|
#else
|
||||||
loc = IA64_REG_LOC (c, UNW_IA64_NAT + reg);
|
loc = IA64_REG_LOC (c, UNW_IA64_NAT + reg);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue