From: Nick Clifton Date: Fri, 27 Aug 1999 08:45:02 +0000 (+0000) Subject: (display_debug_lines, case DW_LNS_const_add_pc): Multiply adv by info.li_min_insn_length. X-Git-Tag: gdb-1999-08-30~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2366453a56200e11ba8cc9fc0e0e604f1e65f4e5;p=external%2Fbinutils.git (display_debug_lines, case DW_LNS_const_add_pc): Multiply adv by info.li_min_insn_length. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index aae6533..cbfae90 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +1999-08-27 Jim Wilson + + * readelf.c (display_debug_lines, case DW_LNS_const_add_pc): Multiply + adv by info.li_min_insn_length. + 1999-08-26 Jakub Jelinek * readelf.c (get_sparc64_dynamic_type): New function. diff --git a/binutils/readelf.c b/binutils/readelf.c index 11171d4..c785a49 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -4381,7 +4381,8 @@ display_debug_lines (section, start, file) break; case DW_LNS_const_add_pc: - adv = (255 - info.li_opcode_base) / info.li_line_range; + adv = (((255 - info.li_opcode_base) / info.li_line_range) + * info.li_min_insn_length); state_machine_regs.address += adv; printf (_(" Advance PC by constant %d to 0x%lx\n"), adv, state_machine_regs.address);