This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] Delete legacy_frame_chain_valid


It's not used up-to-date frame code.

committed,
Andrew
2004-08-02  Andrew Cagney  <cagney@gnu.org>

	* blockframe.c (legacy_frame_chain_valid): Delete function.

Index: blockframe.c
===================================================================
RCS file: /cvs/src/src/gdb/blockframe.c,v
retrieving revision 1.104
diff -p -u -r1.104 blockframe.c
--- blockframe.c	24 Jun 2004 20:42:42 -0000	1.104
+++ blockframe.c	2 Aug 2004 18:57:47 -0000
@@ -492,40 +492,3 @@ block_innermost_frame (struct block *blo
 	return frame;
     }
 }
-
-/* Are we in a call dummy?  The code below which allows DECR_PC_AFTER_BREAK
-   below is for infrun.c, which may give the macro a pc without that
-   subtracted out.  */
-
-/* Returns true for a user frame or a call_function_by_hand dummy
-   frame, and false for the CRT0 start-up frame.  Purpose is to
-   terminate backtrace.  */
-
-int
-legacy_frame_chain_valid (CORE_ADDR fp, struct frame_info *fi)
-{
-  /* Don't prune CALL_DUMMY frames.  */
-  if (deprecated_pc_in_call_dummy (get_frame_pc (fi)))
-    return 1;
-
-  /* If the new frame pointer is zero, then it isn't valid.  */
-  if (fp == 0)
-    return 0;
-  
-  /* If the new frame would be inside (younger than) the previous frame,
-     then it isn't valid.  */
-  if (INNER_THAN (fp, get_frame_base (fi)))
-    return 0;
-  
-  /* If the architecture has a custom DEPRECATED_FRAME_CHAIN_VALID,
-     call it now.  */
-  if (DEPRECATED_FRAME_CHAIN_VALID_P ())
-    return DEPRECATED_FRAME_CHAIN_VALID (fp, fi);
-
-  /* If we're already inside the entry function for the main objfile,
-     then it isn't valid.  */
-  if (inside_entry_func (fi))
-    return 0;
-
-  return 1;
-}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]