* alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Use
authorJerome Guitton <guitton@adacore.com>
Mon, 24 Nov 2008 13:52:05 +0000 (13:52 +0000)
committerJerome Guitton <guitton@adacore.com>
Mon, 24 Nov 2008 13:52:05 +0000 (13:52 +0000)
        the frame address in block instead of the return address to
        locate the mdebug PDR of the frame.

gdb/ChangeLog
gdb/alpha-mdebug-tdep.c

index a38354d..14dce03 100644 (file)
@@ -1,3 +1,9 @@
+2008-11-24  Jerome Guitton  <guitton@adacore.com>
+
+       * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Use
+        the frame address in block instead of the return address to
+        locate the mdebug PDR of the frame.
+
 2008-11-21  Joel Brobecker  <brobecker@adacore.com>
 
        Remove the unused BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
index 0089561..8288a82 100644 (file)
@@ -193,7 +193,7 @@ alpha_mdebug_frame_unwind_cache (struct frame_info *this_frame,
 
   info = FRAME_OBSTACK_ZALLOC (struct alpha_mdebug_unwind_cache);
   *this_prologue_cache = info;
-  pc = get_frame_pc (this_frame);
+  pc = get_frame_address_in_block (this_frame);
 
   /* ??? We don't seem to be able to cache the lookup of the PDR
      from alpha_mdebug_frame_p.  It'd be nice if we could change