mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-26 09:07:38 +01:00
x84_64: It's only 'mcontext_t'.
Fixes warning:
```
src/x86_64/Gos-linux.c:141:36: warning: initialization from incompatible pointer type
struct mcontext_t *sc_mcontext = &((struct ucontext*)sc)->uc_mcontext;
^
```
Introduced-in: 29483327be
This commit is contained in:
parent
cf6382643e
commit
4dea379ad9
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ x86_64_sigreturn (unw_cursor_t *cursor)
|
||||||
{
|
{
|
||||||
struct cursor *c = (struct cursor *) cursor;
|
struct cursor *c = (struct cursor *) cursor;
|
||||||
struct sigcontext *sc = (struct sigcontext *) c->sigcontext_addr;
|
struct sigcontext *sc = (struct sigcontext *) c->sigcontext_addr;
|
||||||
struct mcontext_t *sc_mcontext = &((struct ucontext*)sc)->uc_mcontext;
|
mcontext_t *sc_mcontext = &((struct ucontext*)sc)->uc_mcontext;
|
||||||
/* Copy in saved uc - all preserved regs are at the start of sigcontext */
|
/* Copy in saved uc - all preserved regs are at the start of sigcontext */
|
||||||
memcpy(sc_mcontext, &c->uc->uc_mcontext,
|
memcpy(sc_mcontext, &c->uc->uc_mcontext,
|
||||||
DWARF_NUM_PRESERVED_REGS * sizeof(unw_word_t));
|
DWARF_NUM_PRESERVED_REGS * sizeof(unw_word_t));
|
||||||
|
|
Loading…
Reference in a new issue