This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] write_pieced_value: Fix copy/paste error in size calculation
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Tue, 13 Jun 2017 12:41:00 -0400
- Subject: [binutils-gdb] write_pieced_value: Fix copy/paste error in size calculation
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT cdaac320fd62bff75562aaa3e466494dc72dd175 ***
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Branch: master
Commit: cdaac320fd62bff75562aaa3e466494dc72dd175
write_pieced_value: Fix copy/paste error in size calculation
In write_pieced_value, the number of bytes containing a portion of the
bit-field in a given piece is calculated with the wrong starting offset;
thus the result may be off by one. This bug was probably introduced when
copying this logic from read_pieced_value. Fix it.
gdb/ChangeLog:
* dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
calculation of this_size.