[binutils-gdb] write_pieced_value: Fix copy/paste error in size calculation

sergiodj+buildbot@sergiodj.net sergiodj+buildbot@sergiodj.net
Tue Jun 13 16:40:00 GMT 2017


*** 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.



More information about the Gdb-testers mailing list