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:
parent
582cfb1e62
commit
09ba7e9440
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue