read/write_pieced_value: Merge into one function
authorAndreas Arnez <arnez@linux.vnet.ibm.com>
Tue, 13 Jun 2017 13:20:32 +0000 (15:20 +0200)
committerAndreas Arnez <arnez@linux.vnet.ibm.com>
Tue, 13 Jun 2017 13:20:32 +0000 (15:20 +0200)
commit55acdf2242372ae52abb25c80db8e75df5578b23
treeeb4d2c1f5f08a356821267abef22510d9e635e2d
parentf65e204425b5b46a5927d9501c42f25d98a866ce
read/write_pieced_value: Merge into one function

Since read_pieced_value and write_pieced_value share significant logic,
this patch merges them into a single function rw_pieced_value.

gdb/ChangeLog:

* dwarf2loc.c (rw_pieced_value): New.  Merge logic from...
(read_pieced_value, write_pieced_value): ...here.  Reduce to
wrappers that just call rw_pieced_value.
gdb/ChangeLog
gdb/dwarf2loc.c