mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-01-25 17:50:29 +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:
parent
1c1b6a171f
commit
214827cae8
1 changed files with 4 additions and 1 deletions
|
@ -86,6 +86,9 @@ update_frame_state (struct ia64_cursor *c)
|
||||||
debug (1, "%s: rejecting bad ip=0x%lx\n", __FUNCTION__, (long) c->ip);
|
debug (1, "%s: rejecting bad ip=0x%lx\n", __FUNCTION__, (long) c->ip);
|
||||||
return -UNW_EINVALIDIP;
|
return -UNW_EINVALIDIP;
|
||||||
}
|
}
|
||||||
|
if (ip == 0)
|
||||||
|
/* end of frame-chain reached */
|
||||||
|
return 0;
|
||||||
|
|
||||||
pr = c->pr;
|
pr = c->pr;
|
||||||
c->sp = c->psp;
|
c->sp = c->psp;
|
||||||
|
@ -105,7 +108,7 @@ update_frame_state (struct ia64_cursor *c)
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
return ia64_get_proc_info (c);
|
return ia64_make_proc_info (c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue