1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-07-02 21:51:45 +02:00

(unw_get_save_loc): Handle "saved-in-sigcontext" case only for Linux.

(Logical change 1.87)
This commit is contained in:
mostang.com!davidm 2003-04-24 20:45:07 +00:00
parent a38d3f6275
commit 344768e1d6

View file

@ -85,9 +85,11 @@ unw_get_save_loc (unw_cursor_t *cursor, int reg, unw_save_loc_t *sloc)
if (ret < 0) if (ret < 0)
return ret; return ret;
} }
#if !defined(UNW_LOCAL_ONLY) || defined(__linux)
else if (c->sigcontext_addr) else if (c->sigcontext_addr)
/* NaT bit is saved in a sigcontext. */ /* NaT bit is saved in a sigcontext. */
loc = IA64_LOC_ADDR (c->sigcontext_addr + LINUX_SC_NAT_OFF, 0); loc = IA64_LOC_ADDR (c->sigcontext_addr + LINUX_SC_NAT_OFF, 0);
#endif
} }
break; break;