aboutsummaryrefslogtreecommitdiff
path: root/gdb/mn10300-tdep.c
diff options
context:
space:
mode:
authorMark Alexander <marka@cygnus>1998-07-27 22:41:21 +0000
committerMark Alexander <marka@cygnus>1998-07-27 22:41:21 +0000
commit5ef103c0b9b3bbce39cac24231142162ee90408f (patch)
treeb6baf444f8a151021ab84fc702d4f6493a413c84 /gdb/mn10300-tdep.c
parent6f5af15b07a5fdae381346a7d680c7a1d7cf553d (diff)
downloadgdb-5ef103c0b9b3bbce39cac24231142162ee90408f.zip
gdb-5ef103c0b9b3bbce39cac24231142162ee90408f.tar.gz
gdb-5ef103c0b9b3bbce39cac24231142162ee90408f.tar.bz2
* mn10300-tdep.c (mn10300_analyze_prologue): Undo previous fix
for setting frame address in optimized code; made unnecessary by compiler fixes.
Diffstat (limited to 'gdb/mn10300-tdep.c')
-rw-r--r--gdb/mn10300-tdep.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c
index 8b0c7ed..c2b4fd8 100644
--- a/gdb/mn10300-tdep.c
+++ b/gdb/mn10300-tdep.c
@@ -326,7 +326,7 @@ mn10300_analyze_prologue (fi, pc)
/* No more prologue insns follow, so begin preparation to return. */
/* Fix fi->frame if it's bogus at this point. */
if (fi && fi->next == NULL && (fi->status & MY_FRAME_IN_SP))
- fi->frame = read_sp ();
+ fi->frame = read_sp () - stack_size;
/* Note if/where callee saved registers were saved. */
set_movm_offsets (fi, found_movm);
@@ -416,8 +416,9 @@ mn10300_frame_chain (fi)
/* end-sanitize-am33 */
/* Our caller does not have a frame pointer. So his frame starts
- at the base of our frame (fi->frame) + register save space. */
- return fi->frame + adjust;
+ at the base of our frame (fi->frame) + register save space
+ + <his size>. */
+ return fi->frame + adjust + -dummy_frame.stack_size;
}
}