diff options
author | Yichao Yu <yyc1992@gmail.com> | 2017-08-20 10:38:43 -0400 |
---|---|---|
committer | Dave Watson <davejwatson@fb.com> | 2017-08-22 11:51:20 -0700 |
commit | e9e50d07b01ec7e846e01b0384f26777c90b087a (patch) | |
tree | 40bcc55475aa405c398abb785068d19ed42e3721 | |
parent | c26b603cd0f4c26eaeafa7620c7b2f97e066ec32 (diff) | |
download | libunwind-e9e50d07b01ec7e846e01b0384f26777c90b087a.tar.gz |
x86_64: Use `ucontext_t` instead of `struct ucontext`
Ref https://sourceware.org/git/?p=glibc.git;a=commit;h=251287734e89a52da3db682a8241eb6bccc050c9
And this is what other part of the code uses.
-rw-r--r-- | src/x86_64/Gos-linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x86_64/Gos-linux.c b/src/x86_64/Gos-linux.c index a4f80cad..0a3c2122 100644 --- a/src/x86_64/Gos-linux.c +++ b/src/x86_64/Gos-linux.c @@ -138,7 +138,7 @@ x86_64_sigreturn (unw_cursor_t *cursor) { struct cursor *c = (struct cursor *) cursor; struct sigcontext *sc = (struct sigcontext *) c->sigcontext_addr; - mcontext_t *sc_mcontext = &((struct ucontext*)sc)->uc_mcontext; + mcontext_t *sc_mcontext = &((ucontext_t*)sc)->uc_mcontext; /* Copy in saved uc - all preserved regs are at the start of sigcontext */ memcpy(sc_mcontext, &c->uc->uc_mcontext, DWARF_NUM_PRESERVED_REGS * sizeof(unw_word_t)); |