Commit 897105a1 by Jakub Jelinek Committed by Jakub Jelinek

unwind-ia64.c (uw_frame_state_for): Don't assume a leaf function without unwind info at RP 0.

	* config/ia64/unwind-ia64.c (uw_frame_state_for): Don't assume a
	leaf function without unwind info at RP 0.

From-SVN: r82906
parent 37c849e4
2004-06-10 Jakub Jelinek <jakub@redhat.com> 2004-06-10 Jakub Jelinek <jakub@redhat.com>
* config/ia64/unwind-ia64.c (uw_frame_state_for): Don't assume a
leaf function without unwind info at RP 0.
2004-06-10 Jakub Jelinek <jakub@redhat.com>
PR c++/14791 PR c++/14791
* tree.h (enum tree_index): Add TI_FILEPTR_TYPE. * tree.h (enum tree_index): Add TI_FILEPTR_TYPE.
(fileptr_type_node): Define. (fileptr_type_node): Define.
......
...@@ -1783,8 +1783,10 @@ uw_frame_state_for (struct _Unwind_Context *context, _Unwind_FrameState *fs) ...@@ -1783,8 +1783,10 @@ uw_frame_state_for (struct _Unwind_Context *context, _Unwind_FrameState *fs)
an unwind table entry. an unwind table entry.
This can only happen in the frame after unwinding through a signal This can only happen in the frame after unwinding through a signal
handler. Avoid infinite looping by requiring that B0 != RP. */ handler. Avoid infinite looping by requiring that B0 != RP.
if (context->br_loc[0] && *context->br_loc[0] != context->rp) RP == 0 terminates the chain. */
if (context->br_loc[0] && *context->br_loc[0] != context->rp
&& context->rp != 0)
{ {
fs->curr.reg[UNW_REG_RP].where = UNW_WHERE_BR; fs->curr.reg[UNW_REG_RP].where = UNW_WHERE_BR;
fs->curr.reg[UNW_REG_RP].when = -1; fs->curr.reg[UNW_REG_RP].when = -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment