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:
parent
61f4345a9e
commit
1e77c66a51
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue