aboutsummaryrefslogtreecommitdiff
path: root/gdb/fr30-tdep.c
diff options
context:
space:
mode:
authorZdenek Radouch <radouch@cygnus>1998-12-24 03:09:43 +0000
committerZdenek Radouch <radouch@cygnus>1998-12-24 03:09:43 +0000
commite53f705836267bd68c2762089adc1d036aaf8fed (patch)
tree17ce603094a6d43aad99a90e8ca77d0b0a105f9f /gdb/fr30-tdep.c
parent15b7d7d32a57f2c9575e47eaee1376b1c4b2cd2a (diff)
downloadgdb-e53f705836267bd68c2762089adc1d036aaf8fed.zip
gdb-e53f705836267bd68c2762089adc1d036aaf8fed.tar.gz
gdb-e53f705836267bd68c2762089adc1d036aaf8fed.tar.bz2
Fixed POP_FRAME so that 'return' command works properly.
Diffstat (limited to 'gdb/fr30-tdep.c')
-rw-r--r--gdb/fr30-tdep.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/fr30-tdep.c b/gdb/fr30-tdep.c
index bfc7bb3..c6d257f 100644
--- a/gdb/fr30-tdep.c
+++ b/gdb/fr30-tdep.c
@@ -56,7 +56,7 @@ fr30_pop_frame ()
read_memory_unsigned_integer (frame->fsr.regs[regnum],
REGISTER_RAW_SIZE(regnum)));
- write_register (SP_REGNUM, FRAME_FP (frame));
+ write_register (SP_REGNUM, read_register (frame->framereg));
}
flush_cached_frames ();
@@ -604,7 +604,6 @@ fr30_push_return_address (pc, sp)
CORE_ADDR pc;
CORE_ADDR sp;
{
-T("fr30_push_return_address", CALL_DUMMY_ADDRESS ());
write_register (RP_REGNUM, CALL_DUMMY_ADDRESS ());
return sp;
}