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