1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2025-01-11 03:23:43 +01:00

(update_frame_state): Do an early return if IP is zero (end of chain).

(Logical change 1.29)
This commit is contained in:
mostang.com!davidm 2002-12-03 08:19:58 +00:00
parent 1c1b6a171f
commit 214827cae8

View file

@ -86,6 +86,9 @@ update_frame_state (struct ia64_cursor *c)
debug (1, "%s: rejecting bad ip=0x%lx\n", __FUNCTION__, (long) c->ip);
return -UNW_EINVALIDIP;
}
if (ip == 0)
/* end of frame-chain reached */
return 0;
pr = c->pr;
c->sp = c->psp;
@ -105,7 +108,7 @@ update_frame_state (struct ia64_cursor *c)
if (ret < 0)
return ret;
return ia64_get_proc_info (c);
return ia64_make_proc_info (c);
}