summaryrefslogtreecommitdiff
path: root/gdb/alpha-tdep.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2008-05-30 17:03:55 +0000
committerJoel Brobecker <brobecker@gnat.com>2008-05-30 17:03:55 +0000
commitce797a3800e9b88b6155a29f6cc1392145ee2b53 (patch)
tree7f40cd8d6408a69fae345e8caa804d7b418d16c2 /gdb/alpha-tdep.c
parent81c0215342df1f35ad9bc0e3ed0601ac3f2cbe92 (diff)
downloadgdb-ce797a3800e9b88b6155a29f6cc1392145ee2b53.tar.gz
* alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
the trad-frame register value for the SP register.
Diffstat (limited to 'gdb/alpha-tdep.c')
-rw-r--r--gdb/alpha-tdep.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c
index a667ec2cb82..fe8671f3a5c 100644
--- a/gdb/alpha-tdep.c
+++ b/gdb/alpha-tdep.c
@@ -1149,6 +1149,11 @@ alpha_heuristic_frame_unwind_cache (struct frame_info *this_frame,
if (trad_frame_addr_p(info->saved_regs, reg))
info->saved_regs[reg].addr += val - 1;
+ /* The stack pointer of the previous frame is computed by popping
+ the current stack frame. */
+ if (!trad_frame_addr_p (info->saved_regs, ALPHA_SP_REGNUM))
+ trad_frame_set_value (info->saved_regs, ALPHA_SP_REGNUM, info->vfp);
+
return info;
}