aboutsummaryrefslogtreecommitdiff
path: root/gdb/exec.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-05-22 03:01:45 +0000
committerPedro Alves <palves@redhat.com>2009-05-22 03:01:45 +0000
commit348f8c02f44abcb5f5b0ab1a0c597001ee35da79 (patch)
tree451226879b03bbb2e0c0e52e95af07c1d13832ec /gdb/exec.h
parent415756309f1044b3c3345e7cbf6c680a263ff44a (diff)
downloadbinutils-348f8c02f44abcb5f5b0ab1a0c597001ee35da79.zip
binutils-348f8c02f44abcb5f5b0ab1a0c597001ee35da79.tar.gz
binutils-348f8c02f44abcb5f5b0ab1a0c597001ee35da79.tar.bz2
* bfd-target.c: Don't include gdb_assert.h or gdb_string.h.
Include exec.h. (struct section_closure): Delete. (add_to_section_table): Delete. (build_target_sections_from_bfd): Delete. (target_bfd_xfer_partial): Use section_table_xfer_memory_partial. (target_bfd_reopen): Use build_section_table. * exec.c (xfer_memory): Move most code except for overlay debugging support from here... (section_table_xfer_memory): ... to this new function. (section_table_xfer_memory_partial): New. * exec.h (section_table_xfer_memory_partial): Declare. * bfd-target.h (build_target_sections_from_bfd): Delete declaration.
Diffstat (limited to 'gdb/exec.h')
-rw-r--r--gdb/exec.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/gdb/exec.h b/gdb/exec.h
index b71f0b0..0624447 100644
--- a/gdb/exec.h
+++ b/gdb/exec.h
@@ -34,6 +34,24 @@ extern struct target_ops exec_ops;
extern int build_section_table (struct bfd *, struct section_table **,
struct section_table **);
+/* Request to transfer up to LEN 8-bit bytes of the target sections
+ defined by SECTIONS and SECTIONS_END. The OFFSET specifies the
+ starting address.
+
+ Return the number of bytes actually transfered, or non-positive
+ when no data is available for the requested range.
+
+ This function is intended to be used from target_xfer_partial
+ implementations. See target_read and target_write for more
+ information.
+
+ One, and only one, of readbuf or writebuf must be non-NULL. */
+
+extern int section_table_xfer_memory_partial (gdb_byte *, const gdb_byte *,
+ ULONGEST, LONGEST,
+ struct section_table *,
+ struct section_table *);
+
/* Set the loaded address of a section. */
extern void exec_set_section_address (const char *, int, CORE_ADDR);