2003-11-22 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Sun, 23 Nov 2003 00:27:54 +0000 (00:27 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sun, 23 Nov 2003 00:27:54 +0000 (00:27 +0000)
* frame.h (deprecated_set_frame_next_hack): Delete declaration.
(deprecated_set_frame_prev_hack): Delete declaration.
* frame.c (deprecated_set_frame_next_hack): Delete function.
(deprecated_set_frame_prev_hack): Delete function.
* mcore-tdep.c (analyze_dummy_frame): Delete calls to
"deprecated_set_frame_next_hack" and
"deprecated_set_frame_prev_hack".
* mn10300-tdep.c (analyze_dummy_frame): Ditto.

gdb/ChangeLog
gdb/frame.c
gdb/frame.h
gdb/mcore-tdep.c
gdb/mn10300-tdep.c

index 7558aba792cdd54c50afafb92bbd3f258ef04c66..2120ad12df65f2f4e291c457195f1f4cec40ffc8 100644 (file)
@@ -1,5 +1,14 @@
 2003-11-22  Andrew Cagney  <cagney@redhat.com>
 
+       * frame.h (deprecated_set_frame_next_hack): Delete declaration.
+       (deprecated_set_frame_prev_hack): Delete declaration.
+       * frame.c (deprecated_set_frame_next_hack): Delete function.
+       (deprecated_set_frame_prev_hack): Delete function.
+       * mcore-tdep.c (analyze_dummy_frame): Delete calls to
+       "deprecated_set_frame_next_hack" and
+       "deprecated_set_frame_prev_hack".
+       * mn10300-tdep.c (analyze_dummy_frame): Ditto.
+
        * mips-tdep.c (mips_register_convertible): Delete function.
        (mips_register_convert_to_virtual): Delete function.
        (mips_register_convert_to_raw): Delete function.
@@ -10,7 +19,7 @@
        32/64 cooked to raw register conversions.
 
        * frame.c (deprecated_get_frame_context): Delete function.
-       (deprecated_set_frame_prev_hack): Delete function.
+       (deprecated_set_frame_context): Delete function.
        (struct frame_info): Delete member "context".
        * frame.h (deprecated_get_frame_context): Delete declaration.
        (deprecated_set_frame_context): Delete declaration.
index 330666024dbf72b2dd6541d4936301aa8db57215..1b3d9bc2fcf8e19567c2ba9d5059bb30bc51ea0a 100644 (file)
@@ -2237,13 +2237,6 @@ deprecated_set_frame_extra_info_hack (struct frame_info *frame,
   frame->extra_info = extra_info;
 }
 
-void
-deprecated_set_frame_next_hack (struct frame_info *fi,
-                               struct frame_info *next)
-{
-  fi->next = next;
-}
-
 struct frame_info *
 deprecated_frame_xmalloc (void)
 {
index 00975f34fb675d1f8634cbf00b03bee6e2574470..3cde00b35914632c7d47d80d9ca92f3820420ebc 100644 (file)
@@ -730,14 +730,6 @@ extern struct frame_info *deprecated_frame_xmalloc (void);
 extern struct frame_info *deprecated_frame_xmalloc_with_cleanup (long sizeof_saved_regs,
                                                                 long sizeof_extra_info);
 
-/* FIXME: cagney/2003-01-07: These are just nasty.  Code shouldn't be
-   doing this.  I suspect it dates back to the days when every field
-   of an allocated structure was explicitly initialized.  */
-extern void deprecated_set_frame_next_hack (struct frame_info *fi,
-                                           struct frame_info *next);
-extern void deprecated_set_frame_prev_hack (struct frame_info *fi,
-                                           struct frame_info *prev);
-
 /* Return non-zero if the architecture is relying on legacy frame
    code.  */
 extern int legacy_frame_p (struct gdbarch *gdbarch);
index 09779841ebaf63f396b3be2c002e246d184f58c9..af1900a9ce2a86e87701330322eff6a4e2343aa7 100644 (file)
@@ -259,8 +259,6 @@ analyze_dummy_frame (CORE_ADDR pc, CORE_ADDR frame)
       deprecated_set_frame_extra_info_hack (dummy, extra_info);
     }
 
-  deprecated_set_frame_next_hack (dummy, NULL);
-  deprecated_set_frame_prev_hack (dummy, NULL);
   deprecated_update_frame_pc_hack (dummy, pc);
   deprecated_update_frame_base_hack (dummy, frame);
   get_frame_extra_info (dummy)->status = 0;
index 42c54fc84756ada93adf3843ff5d1b37e58314bc..9f62e8acac9a665f708eda17ac0729429ec2ee67 100644 (file)
@@ -163,8 +163,6 @@ analyze_dummy_frame (CORE_ADDR pc, CORE_ADDR frame)
       extra_info = XMALLOC (struct frame_extra_info);
       deprecated_set_frame_extra_info_hack (dummy, extra_info);
     }
-  deprecated_set_frame_next_hack (dummy, NULL);
-  deprecated_set_frame_prev_hack (dummy, NULL);
   deprecated_update_frame_pc_hack (dummy, pc);
   deprecated_update_frame_base_hack (dummy, frame);
   get_frame_extra_info (dummy)->status = 0;