2004-05-08 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Sat, 8 May 2004 19:03:05 +0000 (19:03 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sat, 8 May 2004 19:03:05 +0000 (19:03 +0000)
* gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
* gdbarch.h, gdbarch.c: Re-generate.
* blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
* infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
* frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.

gdb/ChangeLog
gdb/blockframe.c
gdb/frame.c
gdb/gdbarch.h
gdb/gdbarch.sh
gdb/infcall.c

index 001a8d4166aabcfad96f0860c2952cd137a24741..5995b9fbe212195868bae9db9a0ce822239606a9 100644 (file)
@@ -1,5 +1,12 @@
 2004-05-08  Andrew Cagney  <cagney@redhat.com>
 
+       * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
+       * gdbarch.h, gdbarch.c: Re-generate.
+       * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
+       DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
+       * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
+       * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
+
        * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
        (struct frame_info): Delete opaque declaration.
        * breakpoint.c (deprecated_frame_in_dummy): Delete function.
index a4c209a7a8243d4c3cfe712984af50d9275b212b..428377e688dcac6fccb08b34beaac70dae75bc91 100644 (file)
@@ -527,8 +527,7 @@ int
 legacy_frame_chain_valid (CORE_ADDR fp, struct frame_info *fi)
 {
   /* Don't prune CALL_DUMMY frames.  */
-  if (DEPRECATED_USE_GENERIC_DUMMY_FRAMES
-      && DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (fi), 0, 0))
+  if (DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (fi), 0, 0))
     return 1;
 
   /* If the new frame pointer is zero, then it isn't valid.  */
index bc55484fbca03013cf343f7edc172149d74bb4ca..f3e94c90d238c03d650f557065b42191f6ff4757 100644 (file)
@@ -1062,8 +1062,9 @@ const struct frame_unwind *legacy_saved_regs_unwind = &legacy_saved_regs_unwinde
 static enum frame_type
 frame_type_from_pc (CORE_ADDR pc)
 {
-  if (DEPRECATED_USE_GENERIC_DUMMY_FRAMES
-      && deprecated_pc_in_call_dummy (pc, 0, 0))
+  /* NOTE: cagney/2004-05-08: Eliminating this function depends on all
+     architectures being forced to use the frame-unwind code.  */
+  if (deprecated_pc_in_call_dummy (pc, 0, 0))
     return DUMMY_FRAME;
   else
     return NORMAL_FRAME;
@@ -1581,8 +1582,7 @@ legacy_get_prev_frame (struct frame_info *this_frame)
      has previously set it.  This is really somewhat bogus.  The
      initialization, as seen in create_new_frame(), should occur
      before the INIT function has been called.  */
-  if (DEPRECATED_USE_GENERIC_DUMMY_FRAMES
-      && deprecated_pc_in_call_dummy (get_frame_pc (prev), 0, 0))
+  if (deprecated_pc_in_call_dummy (get_frame_pc (prev), 0, 0))
     prev->type = DUMMY_FRAME;
 
   if (prev->type == NORMAL_FRAME)
index 90545751b43045102ecb88b1c6c5c9e6bc61a6cb..4a2f69751d91646b4303bae652141f7fb6843340 100644 (file)
@@ -52,9 +52,6 @@ struct obstack;
 
 extern struct gdbarch *current_gdbarch;
 
-/* Always one, being eliminated.  */
-#define DEPRECATED_USE_GENERIC_DUMMY_FRAMES 1
-
 /* If any of the following are defined, the target wasn't correctly
    converted. */
 
index 3a067762d677a38b0162989e12dfdedc94a8ceea..32bcf47d5e45415094d6e80283d46ccc502ae937 100755 (executable)
@@ -864,9 +864,6 @@ struct obstack;
 
 extern struct gdbarch *current_gdbarch;
 
-/* Always one, being eliminated.  */
-#define DEPRECATED_USE_GENERIC_DUMMY_FRAMES 1
-
 /* If any of the following are defined, the target wasn't correctly
    converted. */
 
index 41aad923cdd842ee2de59a95bf91b2b213a2a279..1982c969d72db1363ee6ce118373543e00c09614 100644 (file)
@@ -292,8 +292,7 @@ legacy_push_dummy_code (struct gdbarch *gdbarch,
      dummy_addr.  Ulgh!  Blame the HP/UX target.  */
   (*real_pc) += DEPRECATED_CALL_DUMMY_START_OFFSET;
   write_memory (start_sp, (char *) dummy1, sizeof_dummy1);
-  if (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
-    generic_save_call_dummy_addr (start_sp, start_sp + sizeof_dummy1);
+  generic_save_call_dummy_addr (start_sp, start_sp + sizeof_dummy1);
   return sp;
 }
 
@@ -596,10 +595,9 @@ call_function_by_hand (struct value *function, int nargs, struct value **args)
       internal_error (__FILE__, __LINE__, "bad switch");
     }
 
-  if (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
-    /* Save where the breakpoint is going to be inserted so that the
-       dummy-frame code is later able to re-identify it.  */
-    generic_save_call_dummy_addr (bp_addr, bp_addr + 1);
+  /* Save where the breakpoint is going to be inserted so that the
+     dummy-frame code is later able to re-identify it.  */
+  generic_save_call_dummy_addr (bp_addr, bp_addr + 1);
 
   if (nargs < TYPE_NFIELDS (ftype))
     error ("too few arguments in function call");
@@ -833,7 +831,6 @@ You must use a pointer to function type variable. Command ignored.", arg_name);
       /* Sanity.  The exact same SP value is returned by
         PUSH_DUMMY_CALL, saved as the dummy-frame TOS, and used by
         unwind_dummy_id to form the frame ID's stack address.  */
-      gdb_assert (DEPRECATED_USE_GENERIC_DUMMY_FRAMES);
       generic_save_dummy_frame_tos (sp);
     }
   else if (DEPRECATED_SAVE_DUMMY_FRAME_TOS_P ())
@@ -861,7 +858,6 @@ You must use a pointer to function type variable. Command ignored.", arg_name);
        /* Sanity.  The exact same SP value is returned by
         PUSH_DUMMY_CALL, saved as the dummy-frame TOS, and used by
         unwind_dummy_id to form the frame ID's stack address.  */
-       gdb_assert (DEPRECATED_USE_GENERIC_DUMMY_FRAMES);
        frame = frame_id_build (sp, sal.pc);
       }
     else
This page took 0.033566 seconds and 4 git commands to generate.