From 13ab2b8367fcd4cb0016c1ff2c09793c22c9da8c Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Tue, 7 Oct 1997 18:42:54 +0000 Subject: [PATCH] frame.c (__frame_state_for): Execute the FDE insns until the current pc value is strictly bigger than the... * frame.c (__frame_state_for): Execute the FDE insns until the current pc value is strictly bigger than the target pc value. From-SVN: r15863 --- gcc/ChangeLog | 5 +++++ gcc/frame.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fb9cd7cf332..78936124320 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +1997-10-04 Andreas Schwab + + * frame.c (__frame_state_for): Execute the FDE insns until the + current pc value is strictly bigger than the target pc value. + Tue Oct 7 11:00:42 1997 Jason Merrill * regclass.c (init_reg_modes): If we can't find a mode for the diff --git a/gcc/frame.c b/gcc/frame.c index f77f0694d3c..b13167e62a2 100644 --- a/gcc/frame.c +++ b/gcc/frame.c @@ -599,7 +599,7 @@ __frame_state_for (void *pc_target, struct frame_state *state_in) /* Then the insns in the FDE up to our target PC. */ end = next_fde (f); pc = f->pc_begin; - while (insn < end && pc < pc_target) + while (insn < end && pc <= pc_target) insn = execute_cfa_insn (insn, &state, &info, &pc); memcpy (state_in, &state.s, sizeof (state.s));