2007-03-27 Anton Blanchard <anton@samba.org>
authorDaniel Jacobowitz <drow@false.org>
Tue, 27 Mar 2007 19:04:37 +0000 (19:04 +0000)
committerDaniel Jacobowitz <drow@false.org>
Tue, 27 Mar 2007 19:04:37 +0000 (19:04 +0000)
* rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
instead of wordsize when looking for the LR in a stack frame.

gdb/ChangeLog
gdb/rs6000-tdep.c

index e8aa047..5a71a4b 100644 (file)
@@ -1,3 +1,8 @@
+2007-03-27  Anton Blanchard  <anton@samba.org>
+
+       * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
+       instead of wordsize when looking for the LR in a stack frame.
+
 2007-03-27  Andreas Schwab  <schwab@suse.de>
            Daniel Jacobowitz  <dan@codesourcery.com>
 
index 4319626..507b22f 100644 (file)
@@ -3026,7 +3026,7 @@ rs6000_frame_cache (struct frame_info *next_frame, void **this_cache)
       if (make_frame)
        {
          fdata.frameless = 0;
-         fdata.lr_offset = wordsize;
+         fdata.lr_offset = tdep->lr_frame_offset;
        }
     }