diff --git a/src/dwarf/Gstep.c b/src/dwarf/Gstep.c index 59138e6f..7d899ded 100644 --- a/src/dwarf/Gstep.c +++ b/src/dwarf/Gstep.c @@ -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); diff --git a/src/x86_64/Gstep.c b/src/x86_64/Gstep.c index 0d2eef80..5ecee26e 100644 --- a/src/x86_64/Gstep.c +++ b/src/x86_64/Gstep.c @@ -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; }