aboutsummaryrefslogtreecommitdiff
path: root/gdb/exec.h
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2013-11-05 09:50:21 +0800
committerYao Qi <yao@codesourcery.com>2014-02-23 11:44:27 +0800
commit5a2eb0ef7f9b879c2bbe7b18183353e1d59c93c7 (patch)
tree0d1ecdf0a87408a9e42171c5812daf4ecacae60f /gdb/exec.h
parent1ee79381dd9cc2438a61fe4a96294682744d2458 (diff)
downloadbinutils-5a2eb0ef7f9b879c2bbe7b18183353e1d59c93c7.zip
binutils-5a2eb0ef7f9b879c2bbe7b18183353e1d59c93c7.tar.gz
binutils-5a2eb0ef7f9b879c2bbe7b18183353e1d59c93c7.tar.bz2
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.
Diffstat (limited to 'gdb/exec.h')
-rw-r--r--gdb/exec.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/gdb/exec.h b/gdb/exec.h
index 84dc40f..4d9de90 100644
--- a/gdb/exec.h
+++ b/gdb/exec.h
@@ -55,17 +55,6 @@ extern enum target_xfer_status
exec_read_partial_read_only (gdb_byte *readbuf, ULONGEST offset,
ULONGEST len, ULONGEST *xfered_len);
-/* Appends all read-only memory ranges found in the target section
- table defined by SECTIONS and SECTIONS_END, starting at (and
- intersected with) MEMADDR for LEN bytes. Returns the augmented
- VEC. */
-
-extern VEC(mem_range_s) *
- section_table_available_memory (VEC(mem_range_s) *ranges,
- CORE_ADDR memaddr, ULONGEST len,
- struct target_section *sections,
- struct target_section *sections_end);
-
/* Read or write from mappable sections of BFD executable files.
Request to transfer up to LEN 8-bit bytes of the target sections