1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-04 17:09:25 +01:00

dwarf: ip == 0 should't terminate unwind

This commit is contained in:
Arun Sharma 2012-03-25 18:10:10 -07:00
parent 43e5ee28c0
commit d04dc94cc2
2 changed files with 1 additions and 2 deletions

View file

@ -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);

View file

@ -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;
} }