mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-26 09:07:38 +01:00
Add abort() after sigreturn calls
This commit is contained in:
parent
34b064bf22
commit
0d311ea161
1 changed files with 2 additions and 0 deletions
|
@ -346,11 +346,13 @@ x86_local_resume (unw_addr_space_t as, unw_cursor_t *cursor, void *arg)
|
||||||
if (c->sigcontext_format == X86_SCF_NONE) {
|
if (c->sigcontext_format == X86_SCF_NONE) {
|
||||||
Debug (8, "resuming at ip=%x via setcontext()\n", c->dwarf.ip);
|
Debug (8, "resuming at ip=%x via setcontext()\n", c->dwarf.ip);
|
||||||
setcontext (uc);
|
setcontext (uc);
|
||||||
|
abort();
|
||||||
} else if (c->sigcontext_format == X86_SCF_FREEBSD_SIGFRAME) {
|
} else if (c->sigcontext_format == X86_SCF_FREEBSD_SIGFRAME) {
|
||||||
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_UC_MCONTEXT_OFF));
|
||||||
|
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",
|
||||||
c->dwarf.ip, c->sigcontext_format);
|
c->dwarf.ip, c->sigcontext_format);
|
||||||
|
|
Loading…
Reference in a new issue