* blockframe.c (generic_frame_chain_valid): If the new frame
authorJeff Law <law@redhat.com>
Fri, 7 Feb 1997 17:07:49 +0000 (17:07 +0000)
committerJeff Law <law@redhat.com>
Fri, 7 Feb 1997 17:07:49 +0000 (17:07 +0000)
        is not INNER_THAN the old frame, then it's not valid.

gdb/ChangeLog
gdb/blockframe.c

index bea87530f50010b0cb3288ee4cbca976898e4c4f..919e5f4465a5e4f4c4b2ee754ebb4d53a6133792 100644 (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.
index d10bdd3055aa9a144d3b6b08f05acf0323879207..3a84ae7b78b69629747590e1555e444992727f2b 100644 (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
This page took 0.029423 seconds and 4 git commands to generate.