1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-22 15:47:37 +01:00

Fix FreeBSD/x86_64 sigcontext restore

This commit is contained in:
Konstantin Belousov 2010-04-14 12:04:28 +03:00
parent 61f4345a9e
commit 1e77c66a51

View file

@ -186,7 +186,8 @@ HIDDEN NORETURN void
x86_64_sigreturn (unw_cursor_t *cursor)
{
struct cursor *c = (struct cursor *) cursor;
ucontext_t *uc = c->dwarf.cfa + offsetof(struct sigframe, sf_uc);
ucontext_t *uc = (ucontext_t *)(c->sigcontext_addr +
offsetof(struct sigframe, sf_uc));
Debug (8, "resuming at ip=%llx via sigreturn(%p)\n",
(unsigned long long) c->dwarf.ip, uc);