aboutsummaryrefslogtreecommitdiff
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
commit30244cd87c0b05f16c0919b0a5ab12c821f49bed (patch)
tree923ec999746aa830af9dac167afe46d7575743fe /gdb/frame.c
parent84ba0adf42e55d24e3656fc0b0dbcff5eb1e0bbc (diff)
downloadgdb-30244cd87c0b05f16c0919b0a5ab12c821f49bed.zip
gdb-30244cd87c0b05f16c0919b0a5ab12c821f49bed.tar.gz
gdb-30244cd87c0b05f16c0919b0a5ab12c821f49bed.tar.bz2
* 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 2c62d44..d066a49 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)