summaryrefslogtreecommitdiff
path: root/gdb/dwarf2-frame.c
diff options
context:
space:
mode:
authorMartin Hunt <hunt@redhat.com>2004-07-23 17:46:03 +0000
committerMartin Hunt <hunt@redhat.com>2004-07-23 17:46:03 +0000
commit01041d3c90e4c0d527674a7c7f8470e3a1c43d6c (patch)
treeb7433a44c708a46f5cbad63612e53d16c94a7f73 /gdb/dwarf2-frame.c
parent4fb25ce5f6b9529154da087c095367cfb54b26e8 (diff)
downloadgdb-01041d3c90e4c0d527674a7c7f8470e3a1c43d6c.tar.gz
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.
Diffstat (limited to 'gdb/dwarf2-frame.c')
-rw-r--r--gdb/dwarf2-frame.c2
1 files changed, 1 insertions, 1 deletions
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, &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;