1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-06-25 19:01:44 +02: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) {
c->pi_valid = 0;
ret = (c->ip == 0) ? 0 : 1;
ret = 1;
}
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)
return -UNW_EBADFRAME;
}
ret = (c->dwarf.ip == 0) ? 0 : 1;
Debug (2, "returning %d\n", ret);
return ret;
}