* alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
[deliverable/binutils-gdb.git] / gdb / dummy-frame.h
index cfa2709142e14125878ddfe88748f252a9ff8613..ae090e3598d151be0a4e479bb97d8f737535a07f 100644 (file)
@@ -24,6 +24,8 @@
 
 struct frame_info;
 struct regcache;
+struct frame_unwind;
+struct frame_id;
 
 /* GENERIC DUMMY FRAMES
   
@@ -35,36 +37,18 @@ struct regcache;
    generic enough to be used by many targets.
  
    The cheapest and most generic way to do CALL_DUMMY on a new target
-   is probably to define CALL_DUMMY to be empty, CALL_DUMMY_LENGTH to
-   zero, and CALL_DUMMY_LOCATION to AT_ENTRY.  Then you must remember
-   to define PUSH_RETURN_ADDRESS, because no call instruction will be
-   being executed by the target.  Also FRAME_CHAIN_VALID as
-   generic_{file,func}_frame_chain_valid and FIX_CALL_DUMMY as
-   generic_fix_call_dummy.  */
+   is probably to define CALL_DUMMY to be empty,
+   DEPRECATED_CALL_DUMMY_LENGTH to zero, and CALL_DUMMY_LOCATION to
+   AT_ENTRY.  Then you must remember to define PUSH_RETURN_ADDRESS,
+   because no call instruction will be being executed by the target.
+   Also DEPRECATED_FRAME_CHAIN_VALID as
+   generic_{file,func}_frame_chain_valid and do not set
+   DEPRECATED_FIX_CALL_DUMMY.  */
 
-/* Assuming that FRAME is a dummy, return a register value for the
-   previous frame.  */
+/* If the PC falls in a dummy frame, return a dummy frame
+   unwinder.  */
 
-extern void dummy_frame_register_unwind (struct frame_info *frame,
-                                        void **unwind_cache,
-                                        int regnum,
-                                        int *optimized,
-                                        enum lval_type *lvalp,
-                                        CORE_ADDR *addrp,
-                                        int *realnump,
-                                        void *valuep);
-
-/* Assuming that FRAME is a dummy, return the resume address for the
-   previous frame.  */
-
-extern CORE_ADDR dummy_frame_pc_unwind (struct frame_info *frame,
-                                       void **unwind_cache);
-
-/* Assuming that FRAME is a dummy, return the ID of the calling frame
-   (the frame that the dummy has the saved state of).  */
-
-extern struct frame_id dummy_frame_id_unwind (struct frame_info *frame,
-                                             void **unwind_cache);
+extern const struct frame_unwind *dummy_frame_p (CORE_ADDR pc);
 
 /* Does the PC fall in a dummy frame?
 
@@ -97,6 +81,6 @@ extern int pc_in_dummy_frame (CORE_ADDR pc);
    deprecated_generic_get_saved_register.  Eliminate that function and
    this, to, can go.  */
 
-extern struct regcache *generic_find_dummy_frame (CORE_ADDR pc,
-                                                 CORE_ADDR fp);
+extern struct regcache *deprecated_find_dummy_frame_regcache (CORE_ADDR pc,
+                                                             CORE_ADDR fp);
 #endif /* !defined (DUMMY_FRAME_H)  */
This page took 0.024475 seconds and 4 git commands to generate.