From 75d74c48272da679fec925ad7f60c62b998f8185 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 26 Aug 1999 10:53:40 +0000 Subject: [PATCH] (display_debug_lines, case default): Change second line setting adv to use = not += --- binutils/ChangeLog | 5 +++++ binutils/readelf.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 1103281f4b..7e562b55ee 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +1999-08-26 Jim Wilson + + * readelf.c (display_debug_lines, case default): Change second line + setting adv to use = not +=. + 1999-08-19 Nick Clifton * dlltool.c: Added more examples to the comment at the start. diff --git a/binutils/readelf.c b/binutils/readelf.c index 678c8f39a9..6b189b4ee6 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -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); -- 2.34.1