(display_debug_lines, case default): Change second line setting adv to use = not +=

This commit is contained in:
Nick Clifton 1999-08-26 10:53:40 +00:00
parent 0f1ee88922
commit 75d74c4827
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
1999-08-26 Jim Wilson <wilson@cygnus.com>
* readelf.c (display_debug_lines, case default): Change second line
setting adv to use = not +=.
1999-08-19 Nick Clifton <nickc@cygnus.com>
* dlltool.c: Added more examples to the comment at the start.

View File

@ -4385,7 +4385,7 @@ display_debug_lines (section, start, file)
state_machine_regs.address += adv;
printf (_(" Special opcode %d: advance Address by %d to 0x%lx"),
op_code, adv, state_machine_regs.address);
adv += (op_code % info.li_line_range) + info.li_line_base;
adv = (op_code % info.li_line_range) + info.li_line_base;
state_machine_regs.line += adv;
printf (_(" and Line by %d to %d\n"),
adv, state_machine_regs.line);