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

Use correct offset name and value for ucontext offset in struct sigframe

This commit is contained in:
Konstantin Belousov 2010-04-14 12:15:05 +03:00
parent 0d311ea161
commit 127acf8e97
2 changed files with 2 additions and 2 deletions

View file

@ -351,7 +351,7 @@ x86_local_resume (unw_addr_space_t as, unw_cursor_t *cursor, void *arg)
struct sigcontext *sc = (struct sigcontext *) c->sigcontext_addr;
Debug (8, "resuming at ip=%x via sigreturn(%p)\n", c->dwarf.ip, sc);
sigreturn((ucontext_t *)((const char *)sc + FREEBSD_UC_MCONTEXT_OFF));
sigreturn((ucontext_t *)((const char *)sc + FREEBSD_SC_UCONTEXT_OFF));
abort();
} else {
Debug (8, "resuming at ip=%x for sigcontext format %d not implemented\n",

View file

@ -85,7 +85,7 @@
/* FreeBSD-specific definitions: */
#define FREEBSD_SC_UCONTEXT_OFF 0x14
#define FREEBSD_SC_UCONTEXT_OFF 0x20
#define FREEBSD_UC_MCONTEXT_OFF 0x10
#define FREEBSD_UC_MCONTEXT_GS_OFF 0x14