]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Garbage collect deprecated_pc_in_call_dummy
authorPedro Alves <palves@redhat.com>
Fri, 1 Feb 2013 19:58:04 +0000 (19:58 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 1 Feb 2013 19:58:04 +0000 (19:58 +0000)
I noticed there are no users of deprecated_pc_in_call_dummy left in
the tree.

The last user was ARM.  Usage removed here:

http://sourceware.org/ml/gdb-patches/2010-03/msg00820.html

This deletes the function.

2013-02-01  Pedro Alves  <palves@redhat.com>

* dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
* frame.h (deprecated_pc_in_call_dummy): Delete declaration.

gdb/ChangeLog
gdb/dummy-frame.c
gdb/frame.h

index c95c1b388921725cac94b8cec751aa8be125c2f9..f923d0c0c03d2bd8a466c338cbf3d74445555b5f 100644 (file)
@@ -1,3 +1,8 @@
+2013-02-01  Pedro Alves  <palves@redhat.com>
+
+       * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
+       * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
+
 2013-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * elfread.c (elf_symfile_read): Limit separate debug info additions to
index 12310f893d2e87013ee5e6cd4d9246b47769c075..390a6d86bd430e29f3409c9dae68c57ff902cb6b 100644 (file)
@@ -47,40 +47,6 @@ struct dummy_frame
 
 static struct dummy_frame *dummy_frame_stack = NULL;
 
-/* Function: deprecated_pc_in_call_dummy (pc)
-
-   Return non-zero if the PC falls in a dummy frame created by gdb for
-   an inferior call.  The code below which allows gdbarch_decr_pc_after_break
-   is for infrun.c, which may give the function a PC without that
-   subtracted out.
-
-   FIXME: cagney/2002-11-23: This is silly.  Surely "infrun.c" can
-   figure out what the real PC (as in the resume address) is BEFORE
-   calling this function.
-
-   NOTE: cagney/2004-08-02: I'm pretty sure that, with the introduction of
-   infrun.c:adjust_pc_after_break (thanks), this function is now
-   always called with a correctly adjusted PC!
-
-   NOTE: cagney/2004-08-02: Code should not need to call this.  */
-
-int
-deprecated_pc_in_call_dummy (struct gdbarch *gdbarch, CORE_ADDR pc)
-{
-  struct dummy_frame *dummyframe;
-
-  for (dummyframe = dummy_frame_stack;
-       dummyframe != NULL;
-       dummyframe = dummyframe->next)
-    {
-      if ((pc >= dummyframe->id.code_addr)
-         && (pc <= dummyframe->id.code_addr
-                   + gdbarch_decr_pc_after_break (gdbarch)))
-       return 1;
-    }
-  return 0;
-}
-
 /* Push the caller's state, along with the dummy frame info, onto the
    dummy-frame stack.  */
 
index e3c6d91a4f4e6ffbdcb04b9fd1d7b0a9aa010602..31b9cb7209f02bca360f8f4d17ccb84f41d5c725 100644 (file)
@@ -670,8 +670,6 @@ extern void print_frame_info (struct frame_info *, int print_level,
 
 extern struct frame_info *block_innermost_frame (const struct block *);
 
-extern int deprecated_pc_in_call_dummy (struct gdbarch *gdbarch, CORE_ADDR pc);
-
 extern int deprecated_frame_register_read (struct frame_info *frame, int regnum,
                                gdb_byte *buf);