* blockframe.c (generic_frame_chain_valid): If the new frame

is not INNER_THAN the old frame, then it's not valid.
This commit is contained in:
Jeff Law 1997-02-07 17:07:49 +00:00
parent a7355c4d87
commit c301abbdbb
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Fri Feb 7 10:06:22 1997 Jeffrey A Law (law@cygnus.com)
* blockframe.c (generic_frame_chain_valid): If the new frame
is not INNER_THAN the old frame, then it's not valid.
Tue Feb 04 09:04:37 1997 Mark Alexander <marka@cygnus.com>
* mips-tdep.c (mips16_get_imm): Fix calculation of extended immediate.

View File

@ -997,7 +997,9 @@ generic_frame_chain_valid (fp, fi)
if (PC_IN_CALL_DUMMY(FRAME_SAVED_PC(fi), fp, fp))
return 1; /* don't prune CALL_DUMMY frames */
else /* fall back to default algorithm (see frame.h) */
return (fp != 0 && !inside_entry_file (FRAME_SAVED_PC(fi)));
return (fp != 0
&& fi->frame INNER_THAN fp
&& !inside_entry_file (FRAME_SAVED_PC(fi)));
}
/* Function: get_saved_register