From Ulrich Weigand <weigand@informatik.uni-erlangen.de>:
authorMark Kettenis <kettenis@gnu.org>
Fri, 5 Dec 2003 21:14:49 +0000 (21:14 +0000)
committerMark Kettenis <kettenis@gnu.org>
Fri, 5 Dec 2003 21:14:49 +0000 (21:14 +0000)
* dwarf2-frame.c (dwarf2_frame_cache): Use the untranslated RA
column instead of translating it.

gdb/ChangeLog
gdb/dwarf2-frame.c

index da73f777b0c1f0b3e35fdf11be2d31ec52904cc7..a898867a25ad8bc2679c09e63db906712d0d74a5 100644 (file)
@@ -1,3 +1,9 @@
+2003-12-05  Mark Kettenis  <kettenis@gnu.org>
+
+       From Ulrich Weigand  <weigand@informatik.uni-erlangen.de>:
+       * dwarf2-frame.c (dwarf2_frame_cache): Use the untranslated RA
+       column instead of translating it.
+
 2003-12-04  Michael Chastain  <mec.gnu@mindspring.com>
 
        Partial fix for PR c++/1465.
index 34b21f86e9644083e306cb8a33443bc5ccd4aaa1..59f4481bef38a0f097c3ee90bf1a0113163c9c99 100644 (file)
@@ -618,14 +618,13 @@ dwarf2_frame_cache (struct frame_info *next_frame, void **this_cache)
     }
   else
     {
-      int reg = DWARF2_REG_TO_REGNUM (fs->retaddr_column);
-      if (reg != PC_REGNUM)
+      if (DWARF2_REG_TO_REGNUM (fs->retaddr_column) != PC_REGNUM)
        {
          /* See comment above about PC_REGNUM being negative.  If
             this assertion fails, it's a problem with this code and
             not the architecture.  */
          gdb_assert (PC_REGNUM >= 0);
-         cache->reg[PC_REGNUM].loc.reg = reg;
+         cache->reg[PC_REGNUM].loc.reg = fs->retaddr_column;
          cache->reg[PC_REGNUM].how = REG_SAVED_REG;
        }
     }