2004-03-21 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Mon, 22 Mar 2004 01:43:32 +0000 (01:43 +0000)
committerAndrew Cagney <cagney@redhat.com>
Mon, 22 Mar 2004 01:43:32 +0000 (01:43 +0000)
* inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
declaration and out-of-date comment.
* blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
Delete function.
* mn10300-tdep.c (mn10300_gdbarch_init): Do not set
deprecated_pc_in_call_dummy.

gdb/ChangeLog
gdb/blockframe.c
gdb/inferior.h
gdb/mn10300-tdep.c

index 16e852a05ce644921cc44328da8d6d86670036b4..5ea55d83066b7af08827169361db2f64b743a2b7 100644 (file)
@@ -1,5 +1,12 @@
 2004-03-21  Andrew Cagney  <cagney@redhat.com>
 
+       * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
+       declaration and out-of-date comment.
+       * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
+       Delete function.
+       * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
+       deprecated_pc_in_call_dummy.
+
        * infrun.c (handle_inferior_event): For non legacy frames, use the
        frame ID and frame type to identify a signal trampoline.  Update
        comments.
index 1e965550546119fad2faa13bf55db27fa1b04752..1ff46857aeaa69bcb6c9ed43e8543c774f7ac6c1 100644 (file)
@@ -585,14 +585,6 @@ deprecated_pc_in_call_dummy_on_stack (CORE_ADDR pc, CORE_ADDR sp,
          && INNER_THAN ((pc), (frame_address)));
 }
 
-int
-deprecated_pc_in_call_dummy_at_entry_point (CORE_ADDR pc, CORE_ADDR sp,
-                                           CORE_ADDR frame_address)
-{
-  CORE_ADDR addr = entry_point_address ();
-  return ((pc) >= addr && (pc) <= (addr + DECR_PC_AFTER_BREAK));
-}
-
 /* 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.  */
index b36dcd45b1d80d7b345a3421c7cbfc905d965680..115ffe1e3d81b75c4e60c8859e3531d98ab35b23 100644 (file)
@@ -463,15 +463,6 @@ extern int deprecated_pc_in_call_dummy_on_stack (CORE_ADDR pc,
                                                 CORE_ADDR sp,
                                                 CORE_ADDR frame_address);
 
-/* NOTE: cagney/2002-11-24: Targets need to both switch to generic
-   dummy frames, and use generic_pc_in_call_dummy().  The generic
-   version should be able to handle all cases since that code works by
-   saving the address of the dummy's breakpoint (where ever it is).  */
-
-extern int deprecated_pc_in_call_dummy_at_entry_point (CORE_ADDR pc,
-                                                      CORE_ADDR sp,
-                                                      CORE_ADDR frame_address);
-
 /* If STARTUP_WITH_SHELL is set, GDB's "run"
    will attempts to start up the debugee under a shell.
    This is in order for argument-expansion to occur. E.g.,
index 998ee6897380faa7fb8d2bac540498f9880038be..21f506947edb5a6125d287d653101e9e088c6a1b 100644 (file)
@@ -1185,7 +1185,6 @@ mn10300_gdbarch_init (struct gdbarch_info info,
   /* Calling functions in the inferior from GDB.  */
   set_gdbarch_deprecated_call_dummy_words (gdbarch, mn10300_call_dummy_words);
   set_gdbarch_deprecated_sizeof_call_dummy_words (gdbarch, sizeof (mn10300_call_dummy_words));
-  set_gdbarch_deprecated_pc_in_call_dummy (gdbarch, deprecated_pc_in_call_dummy_at_entry_point);
   set_gdbarch_deprecated_push_arguments (gdbarch, mn10300_push_arguments);
   set_gdbarch_deprecated_reg_struct_has_addr
     (gdbarch, mn10300_reg_struct_has_addr);