mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-05 01:09:27 +01:00
Remove extra empty line
This commit is contained in:
parent
bdee34d766
commit
71c4161247
2 changed files with 20 additions and 1 deletions
|
@ -41,4 +41,3 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||||
#define JB_MASK 9
|
#define JB_MASK 9
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -54,6 +54,26 @@ x86_local_resume (unw_addr_space_t as, unw_cursor_t *cursor, void *arg)
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
#elif defined __FreeBSD__
|
||||||
|
struct cursor *c = (struct cursor *) cursor;
|
||||||
|
ucontext_t *uc = c->uc;
|
||||||
|
|
||||||
|
/* Ensure c->pi is up-to-date. On x86, it's relatively common to be
|
||||||
|
missing DWARF unwind info. We don't want to fail in that case,
|
||||||
|
because the frame-chain still would let us do a backtrace at
|
||||||
|
least. */
|
||||||
|
dwarf_make_proc_info (&c->dwarf);
|
||||||
|
|
||||||
|
if (c->sigcontext_format == X86_SCF_NONE) {
|
||||||
|
Debug (8, "resuming at ip=%x via setcontext()\n", c->dwarf.ip);
|
||||||
|
setcontext (uc);
|
||||||
|
} else if (c->sigcontext_format == XXX) {
|
||||||
|
struct sigcontext *sc = (struct sigcontext *) c->sigcontext_addr;
|
||||||
|
|
||||||
|
Debug (8, "resuming at ip=%x via sigreturn(%p)\n", c->dwarf.ip, sc);
|
||||||
|
sigreturn(sc);
|
||||||
|
}
|
||||||
|
else
|
||||||
#else
|
#else
|
||||||
# warning Implement me!
|
# warning Implement me!
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue