diff options
author | Nick Clifton <nickc@redhat.com> | 1999-08-27 08:45:02 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 1999-08-27 08:45:02 +0000 |
commit | 2366453a56200e11ba8cc9fc0e0e604f1e65f4e5 (patch) | |
tree | 607d56743582033265ff23ec9fdb52e4152086ed /binutils/readelf.c | |
parent | 9458945f8f2c55d6084e0de3ead008c584ebdd9d (diff) | |
download | binutils-2366453a56200e11ba8cc9fc0e0e604f1e65f4e5.zip binutils-2366453a56200e11ba8cc9fc0e0e604f1e65f4e5.tar.gz binutils-2366453a56200e11ba8cc9fc0e0e604f1e65f4e5.tar.bz2 |
(display_debug_lines, case DW_LNS_const_add_pc): Multiply adv by info.li_min_insn_length.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |