mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-22 15:47:37 +01:00
ARM: Exit unw_step in case DWARF based unwinding was successful
Prevents unw_step from trying to unwind the stack using the ARM specific unwind tables in case the DWARF based unwinding was successful. Signed-off-by: Ken Werner <ken.werner@linaro.org>
This commit is contained in:
parent
e3c87a6261
commit
912db91b05
1 changed files with 4 additions and 2 deletions
|
@ -177,7 +177,9 @@ unw_step (unw_cursor_t *cursor)
|
|||
ret = dwarf_step (&c->dwarf);
|
||||
Debug(1, "dwarf_step()=%d\n", ret);
|
||||
|
||||
if (unlikely (ret == -UNW_ESTOPUNWIND))
|
||||
if (likely (ret > 0))
|
||||
return 1;
|
||||
else if (unlikely (ret == -UNW_ESTOPUNWIND))
|
||||
return ret;
|
||||
|
||||
if (ret < 0 && ret != -UNW_ENOINFO)
|
||||
|
|
Loading…
Reference in a new issue