patch-src_x86_Gos-linux_c 820 B

123456789101112131415161718192021222324
  1. --- libunwind-1.2.orig/src/x86/Gos-linux.c 2016-11-18 04:28:29.000000000 +0100
  2. +++ libunwind-1.2/src/x86/Gos-linux.c 2017-04-17 16:59:08.339188080 +0200
  3. @@ -290,19 +290,8 @@ x86_local_resume (unw_addr_space_t as, u
  4. because the frame-chain still would let us do a backtrace at
  5. least. */
  6. dwarf_make_proc_info (&c->dwarf);
  7. -
  8. - if (unlikely (c->sigcontext_format != X86_SCF_NONE))
  9. - {
  10. - struct sigcontext *sc = (struct sigcontext *) c->sigcontext_addr;
  11. -
  12. - Debug (8, "resuming at ip=%x via sigreturn(%p)\n", c->dwarf.ip, sc);
  13. - sigreturn (sc);
  14. - }
  15. - else
  16. - {
  17. - Debug (8, "resuming at ip=%x via setcontext()\n", c->dwarf.ip);
  18. - setcontext (uc);
  19. - }
  20. + Debug (8, "resuming at ip=%x via setcontext()\n", c->dwarf.ip);
  21. + setcontext (uc);
  22. return -UNW_EINVAL;
  23. }
  24. #endif