summaryrefslogtreecommitdiff
path: root/gdb/frame.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-05-14 15:17:00 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-05-14 15:17:00 +0000
commit4bc36e1dd42c0dfd500b85c81afd28de08c72409 (patch)
tree5edddbb3da2f18c41737256f790c3eb7ef3ec679 /gdb/frame.c
parent60787702b6ed7e5290e316688e4798355603b9c0 (diff)
downloadgdb-4bc36e1dd42c0dfd500b85c81afd28de08c72409.tar.gz
* gdbarch.sh (read_sp): Remove.
* gdbarch.c, gdbarch.h: Regenerate. * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP. * avr-tdep.c (avr_read_sp): Remove. (avr_unwind_sp): New function. (avr_gdbarch_init): Install unwind_sp instead of read_sp callback. * mips-tdep.c (mips_read_sp): Remove. (mips_unwind_sp): New function. (mips_gdbarch_init): Install unwind_sp instead of read_sp callback. * score-tdep.c (score_read_unsigned_register): Remove. (score_read_sp): Remove. (score_unwind_sp): New function. (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
Diffstat (limited to 'gdb/frame.c')
-rw-r--r--gdb/frame.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/frame.c b/gdb/frame.c
index 2c62d441a6b..d066a49b738 100644
--- a/gdb/frame.c
+++ b/gdb/frame.c
@@ -1712,10 +1712,6 @@ frame_sp_unwind (struct frame_info *next_frame)
frame inner-most address. */
if (gdbarch_unwind_sp_p (current_gdbarch))
return gdbarch_unwind_sp (current_gdbarch, next_frame);
- /* Things are looking grim. If it's the inner-most frame and there
- is a TARGET_READ_SP, then that can be used. */
- if (next_frame->level < 0 && TARGET_READ_SP_P ())
- return TARGET_READ_SP ();
/* Now things are really are grim. Hope that the value returned by
the SP_REGNUM register is meaningful. */
if (SP_REGNUM >= 0)