2004-07-23 Martin Hunt <hunt@redhat.com>
authorMartin Hunt <hunt@redhat.com>
Fri, 23 Jul 2004 17:46:03 +0000 (17:46 +0000)
committerMartin Hunt <hunt@redhat.com>
Fri, 23 Jul 2004 17:46:03 +0000 (17:46 +0000)
Kevin Buettner <kevinb@redhat.com>

* dwarf2-frame.c (execute_cfa_program): Fix typo in which the
alignment was being added to the offset instead of multiplied.

gdb/ChangeLog
gdb/dwarf2-frame.c

index 65eaef06fb6142c9374d68c88fcbaab007c8aeb7..0cc9531995ca96c097a4863f5dde10ba13e78bce 100644 (file)
@@ -1,3 +1,9 @@
+2004-07-23  Martin Hunt  <hunt@redhat.com>
+       Kevin Buettner <kevinb@redhat.com>
+
+       * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
+       alignment was being added to the offset instead of multiplied.
+
 2004-07-23  Mark Kettenis  <kettenis@gnu.org>
 
        * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
index 7ee18db892a6daf212aa0d1112b3b13bd659bace..7e61838a2356ec3946074bff333b0498284e9d0b 100644 (file)
@@ -426,7 +426,7 @@ bad CFI data; mismatched DW_CFA_restore_state at 0x%s", paddr (fs->pc));
            case DW_CFA_offset_extended_sf:
              insn_ptr = read_uleb128 (insn_ptr, insn_end, &reg);
              insn_ptr = read_sleb128 (insn_ptr, insn_end, &offset);
-             offset += fs->data_align;
+             offset *= fs->data_align;
              dwarf2_frame_state_alloc_regs (&fs->regs, reg + 1);
              fs->regs.reg[reg].how = DWARF2_FRAME_REG_SAVED_OFFSET;
              fs->regs.reg[reg].loc.offset = offset;