Use new to_xfer_partial interface in ctf and tfile target
authorYao Qi <yao@codesourcery.com>
Tue, 11 Feb 2014 04:20:05 +0000 (12:20 +0800)
committerYao Qi <yao@codesourcery.com>
Sun, 23 Feb 2014 03:44:27 +0000 (11:44 +0800)
commit1ee79381dd9cc2438a61fe4a96294682744d2458
treecacc74d2ed737ebef23b92e7688f1974b2a0012b
parent1ca49d376dec6a93e879bc9456617622d7e349b3
Use new to_xfer_partial interface in ctf and tfile target

This patch adjust both ctf and tfile target implementation of to_xfer_partial,
to return TARGET_XFER_E_UNAVAILABLE and set *XFERED_LEN if data is
unavailable.  Note that some code on xfer in exec.c can be shared, but
we can do it in a separate pass later.

gdb:

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

* exec.c (section_table_read_available_memory): New function.
* exec.h (section_table_read_available_memory): Declare.
* ctf.c (ctf_xfer_partial): Call
section_table_read_available_memory.
* tracefile-tfile.c (tfile_xfer_partial): Likewise.
gdb/ChangeLog
gdb/ctf.c
gdb/exec.c
gdb/exec.h
gdb/tracefile-tfile.c
This page took 0.024812 seconds and 4 git commands to generate.