Share code on to_xfer_partial for tfile and ctf target
authorYao Qi <yao@codesourcery.com>
Mon, 10 Feb 2014 09:17:32 +0000 (17:17 +0800)
committerYao Qi <yao@codesourcery.com>
Sun, 23 Feb 2014 03:44:27 +0000 (11:44 +0800)
commit1ca49d376dec6a93e879bc9456617622d7e349b3
tree0e2564e9ec48472a73c83abb826f6ec19e7de5f7
parenta283690eb7320dfe4074301c673f6cc3dd21fb11
Share code on to_xfer_partial for tfile and ctf target

In the to_xfer_partial implementations of ctf and tfile, the code on
reading from read-only sections is duplicated.  This patch moves it to
a separate function exec_read_partial_read_only.

gdb:

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

* ctf.c (ctf_xfer_partial): Move code to ...
* exec.c (exec_read_partial_read_only): ... it.  New function.
* tracefile-tfile.c (tfile_xfer_partial): Likewise.
* tracefile.c: Include "exec.h".
* exec.h (exec_read_partial_read_only): Declare.
gdb/ChangeLog
gdb/ctf.c
gdb/exec.c
gdb/exec.h
gdb/tracefile-tfile.c
gdb/tracefile.c
This page took 0.032118 seconds and 4 git commands to generate.