diff options
author | Martin Hunt <hunt@redhat.com> | 2004-07-23 17:46:03 +0000 |
---|---|---|
committer | Martin Hunt <hunt@redhat.com> | 2004-07-23 17:46:03 +0000 |
commit | f6da8dd80e7b8f2bc8b1ed9ea1dc6a1039823bc3 (patch) | |
tree | a29db93d25f09d08870c1eca192c57b6ce763912 /gdb/dwarf2-frame.c | |
parent | 9f61903d7388315e3d7b83a7e7c5ce1e30ab5ed3 (diff) | |
download | gdb-f6da8dd80e7b8f2bc8b1ed9ea1dc6a1039823bc3.zip gdb-f6da8dd80e7b8f2bc8b1ed9ea1dc6a1039823bc3.tar.gz gdb-f6da8dd80e7b8f2bc8b1ed9ea1dc6a1039823bc3.tar.bz2 |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2-frame.c b/gdb/dwarf2-frame.c index 7ee18db..7e61838 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; |