write_pieced_value: Include transfer size in byte-wise check
authorAndreas Arnez <arnez@linux.vnet.ibm.com>
Tue, 13 Jun 2017 13:20:27 +0000 (15:20 +0200)
committerAndreas Arnez <arnez@linux.vnet.ibm.com>
Tue, 13 Jun 2017 13:20:27 +0000 (15:20 +0200)
commitf1cc987420d9d2489eb453bd1c87139666cbe7fd
tree57d3ba6587ba8a38ad1437357c82039f055e12f8
parentcdaac320fd62bff75562aaa3e466494dc72dd175
write_pieced_value: Include transfer size in byte-wise check

In write_pieced_value, when checking whether the data can be transferred
byte-wise, the current logic verifies the source- and destination offsets
to be byte-aligned, but not the transfer size.  This is fixed.

gdb/ChangeLog:

* dwarf2loc.c (write_pieced_value): Include transfer size in
byte-wise check.
gdb/ChangeLog
gdb/dwarf2loc.c