mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-22 23:47:39 +01:00
Use correct offset name and value for ucontext offset in struct sigframe
This commit is contained in:
parent
0d311ea161
commit
127acf8e97
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
struct sigcontext *sc = (struct sigcontext *) c->sigcontext_addr;
|
||||||
|
|
||||||
Debug (8, "resuming at ip=%x via sigreturn(%p)\n", c->dwarf.ip, sc);
|
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();
|
abort();
|
||||||
} else {
|
} else {
|
||||||
Debug (8, "resuming at ip=%x for sigcontext format %d not implemented\n",
|
Debug (8, "resuming at ip=%x for sigcontext format %d not implemented\n",
|
||||||
|
|
|
@ -85,7 +85,7 @@
|
||||||
|
|
||||||
/* FreeBSD-specific definitions: */
|
/* 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_OFF 0x10
|
||||||
|
|
||||||
#define FREEBSD_UC_MCONTEXT_GS_OFF 0x14
|
#define FREEBSD_UC_MCONTEXT_GS_OFF 0x14
|
||||||
|
|
Loading…
Reference in a new issue