1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-12-24 04:13:41 +01:00

Correct arguments for Debug().

Shut up warning by using the cast.
This commit is contained in:
Konstantin Belousov 2010-04-10 00:38:54 +03:00
parent d1676f192e
commit 2c50c95cde

View file

@ -307,10 +307,10 @@ 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((const char *)sc + FREEBSD_UC_MCONTEXT_OFF); sigreturn((ucontext_t *)((const char *)sc + FREEBSD_UC_MCONTEXT_OFF));
} 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->sigcontext_format); c->dwarf.ip, c->sigcontext_format);
abort(); abort();
} }
return -UNW_EINVAL; return -UNW_EINVAL;