aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1999-08-26 10:53:40 +0000
committerNick Clifton <nickc@redhat.com>1999-08-26 10:53:40 +0000
commit75d74c48272da679fec925ad7f60c62b998f8185 (patch)
treedabc48ffd548c35ac395faf3c424fdbf03a4e971 /binutils
parent0f1ee8892239c700ecce2a4a1fec84ee3660a7bc (diff)
downloadgdb-75d74c48272da679fec925ad7f60c62b998f8185.zip
gdb-75d74c48272da679fec925ad7f60c62b998f8185.tar.gz
gdb-75d74c48272da679fec925ad7f60c62b998f8185.tar.bz2
(display_debug_lines, case default): Change second line setting adv to use = not +=
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/readelf.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 1103281..7e562b5 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -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.
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 678c8f3..6b189b4 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);