Adjust read_value_memory to use to_xfer_partial
authorYao Qi <yao@codesourcery.com>
Tue, 5 Nov 2013 01:50:21 +0000 (09:50 +0800)
committerYao Qi <yao@codesourcery.com>
Sun, 23 Feb 2014 03:44:27 +0000 (11:44 +0800)
commit5a2eb0ef7f9b879c2bbe7b18183353e1d59c93c7
tree0d1ecdf0a87408a9e42171c5812daf4ecacae60f
parent1ee79381dd9cc2438a61fe4a96294682744d2458
Adjust read_value_memory to use to_xfer_partial

As the new to_xfer_partial implementations are done in ctf and tfile
targets, read_value_memory can be simplified a lot.  Call
target_xfer_partial in a loop, check return value, and set bytes
unavailable when necessary.

gdb:

2014-02-23  Yao Qi  <yao@codesourcery.com>

* valops.c (read_value_memory): Rewrite it.  Call
target_xfer_partial in a loop.
* exec.h (section_table_available_memory): Remove declaration.
Move comments to ...
* exec.c (section_table_available_memory): ... here.  Make it static.
gdb/ChangeLog
gdb/exec.c
gdb/exec.h
gdb/valops.c