read/write_pieced_value: Remove unnecessary variable copies
authorAndreas Arnez <arnez@linux.vnet.ibm.com>
Tue, 13 Jun 2017 13:20:31 +0000 (15:20 +0200)
committerAndreas Arnez <arnez@linux.vnet.ibm.com>
Tue, 13 Jun 2017 13:20:31 +0000 (15:20 +0200)
commitf236533e3c6a2693bea879b2a4d24d1229864ac9
treee49175d8119a36e37f18924883e3cad1e6909bce
parent65d84b76164dc8ec1a1f0f0e0fd41667065ffd4e
read/write_pieced_value: Remove unnecessary variable copies

In read_pieced_value's main loop, the variables `dest_offset_bits' and
`source_offset_bits' are basically just copies of `offset' and
`bits_to_skip', respectively.  In write_pieced_value the copies are
reversed.  This is not very helpful when trying to keep the logic between
these functions in sync.  Since the copies are unnecessary, this patch
just removes them.

gdb/ChangeLog:

* dwarf2loc.c (read_pieced_value): Remove unnecessary variables
dest_offset_bits and source_offset_bits.
(write_pieced_value): Likewise.
gdb/ChangeLog
gdb/dwarf2loc.c