This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] Garbage collect arm_saved_pc_after_call
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: gdb-patches at sourceware dot org
- Date: Sun, 16 Jul 2006 12:39:15 +0200 (CEST)
- Subject: [commit] Garbage collect arm_saved_pc_after_call
SAVED_PC_AFTER_CALL isn't used anywhere in the tree anymore, so I
committed the attached as obvious. I'll remove it from gdbarch.sh in
a moment.
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* arm-tdep.c (arm_saved_pc_after_call): Delete.
(arm_gdbarch_init): Do not set deprecated_saved_pc_after_call.
Index: arm-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/arm-tdep.c,v
retrieving revision 1.210
diff -u -p -r1.210 arm-tdep.c
--- arm-tdep.c 23 Jun 2006 13:01:05 -0000 1.210
+++ arm-tdep.c 16 Jul 2006 10:30:37 -0000
@@ -212,17 +212,6 @@ arm_smash_text_address (CORE_ADDR val)
return val & ~1;
}
-/* Immediately after a function call, return the saved pc. Can't
- always go through the frames for this because on some machines the
- new frame is not set up until the new function executes some
- instructions. */
-
-static CORE_ADDR
-arm_saved_pc_after_call (struct frame_info *frame)
-{
- return ADDR_BITS_REMOVE (read_register (ARM_LR_REGNUM));
-}
-
/* A typical Thumb prologue looks like this:
push {r7, lr}
add sp, sp, #-28
@@ -2764,9 +2753,6 @@ arm_gdbarch_init (struct gdbarch_info in
/* Advance PC across function entry code. */
set_gdbarch_skip_prologue (gdbarch, arm_skip_prologue);
- /* Get the PC when a frame might not be available. */
- set_gdbarch_deprecated_saved_pc_after_call (gdbarch, arm_saved_pc_after_call);
-
/* The stack grows downward. */
set_gdbarch_inner_than (gdbarch, core_addr_lessthan);