mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-05 01:09:27 +01:00
dwarf: ip == 0 should't terminate unwind
This commit is contained in:
parent
43e5ee28c0
commit
d04dc94cc2
2 changed files with 1 additions and 2 deletions
|
@ -33,7 +33,7 @@ dwarf_step (struct dwarf_cursor *c)
|
||||||
|
|
||||||
if ((ret = dwarf_find_save_locs (c)) >= 0) {
|
if ((ret = dwarf_find_save_locs (c)) >= 0) {
|
||||||
c->pi_valid = 0;
|
c->pi_valid = 0;
|
||||||
ret = (c->ip == 0) ? 0 : 1;
|
ret = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
Debug (15, "returning %d\n", ret);
|
Debug (15, "returning %d\n", ret);
|
||||||
|
|
|
@ -213,7 +213,6 @@ unw_step (unw_cursor_t *cursor)
|
||||||
if (c->dwarf.ip == prev_ip && c->dwarf.cfa == prev_cfa)
|
if (c->dwarf.ip == prev_ip && c->dwarf.cfa == prev_cfa)
|
||||||
return -UNW_EBADFRAME;
|
return -UNW_EBADFRAME;
|
||||||
}
|
}
|
||||||
ret = (c->dwarf.ip == 0) ? 0 : 1;
|
|
||||||
Debug (2, "returning %d\n", ret);
|
Debug (2, "returning %d\n", ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue