aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2006-07-16 10:33:25 +0000
committerMark Kettenis <kettenis@gnu.org>2006-07-16 10:33:25 +0000
commit1cd566a4445b89fd79300cce04b715389623fdad (patch)
treef6ee4cdbf27cb9713057f89d7ca50685032280ca
parenta2902af6f4b9022ac46de07baab7e3ee72d4be6a (diff)
downloadbinutils-1cd566a4445b89fd79300cce04b715389623fdad.zip
binutils-1cd566a4445b89fd79300cce04b715389623fdad.tar.gz
binutils-1cd566a4445b89fd79300cce04b715389623fdad.tar.bz2
* arm-tdep.c (arm_saved_pc_after_call): Delete.
(arm_gdbarch_init): Do not set deprecated_saved_pc_after_call.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/arm-tdep.c14
2 files changed, 5 insertions, 14 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index eaed9f4..684ad8d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2006-07-16 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.
+
2006-07-16 Alfred M. Szmidt <ams@gnu.org>
* gnu-nat.c: Undefine _process_user_ before including
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index eafa61d..44eb897 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -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 info, struct gdbarch_list *arches)
/* 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);