From: Martin Hunt Date: Fri, 23 Jul 2004 17:46:03 +0000 (+0000) Subject: 2004-07-23 Martin Hunt X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f6da8dd80e7b8f2bc8b1ed9ea1dc6a1039823bc3;p=binutils-gdb.git 2004-07-23 Martin Hunt Kevin Buettner * dwarf2-frame.c (execute_cfa_program): Fix typo in which the alignment was being added to the offset instead of multiplied. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 65eaef06fb6..0cc9531995c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2004-07-23 Martin Hunt + Kevin Buettner + + * 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 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for diff --git a/gdb/dwarf2-frame.c b/gdb/dwarf2-frame.c index 7ee18db892a..7e61838a235 100644 --- a/gdb/dwarf2-frame.c +++ b/gdb/dwarf2-frame.c @@ -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, ®); 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;