mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-02-18 19:11:41 +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... */
|
/* Try DWARF-based unwinding... */
|
||||||
ret = dwarf_step (&c->dwarf);
|
ret = dwarf_step (&c->dwarf);
|
||||||
|
|
||||||
|
if (unlikely (ret == -UNW_ESTOPUNWIND))
|
||||||
|
return ret;
|
||||||
|
|
||||||
if (unlikely (ret < 0))
|
if (unlikely (ret < 0))
|
||||||
{
|
{
|
||||||
/* DWARF failed, let's see if we can follow the frame-chain
|
/* DWARF failed, let's see if we can follow the frame-chain
|
||||||
|
|
Loading…
Add table
Reference in a new issue