1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-27 01:27:39 +01:00

(unw_step): If dwarf_step() returns -UNW_ESTOPUNWIND, take that

as a hard signal that we should stop unwinding.  This
	fixes tests/test_proc_info.

(Logical change 1.224)
This commit is contained in:
mostang.com!davidm 2004-05-05 01:54:53 +00:00
parent 582cfb1e62
commit 09ba7e9440

View file

@ -37,6 +37,9 @@ unw_step (unw_cursor_t *cursor)
/* Try DWARF-based unwinding... */
ret = dwarf_step (&c->dwarf);
if (unlikely (ret == -UNW_ESTOPUNWIND))
return ret;
if (unlikely (ret < 0))
{
/* DWARF failed, let's see if we can follow the frame-chain