summaryrefslogtreecommitdiffstats
path: root/gdb/target.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-10-17 20:17:51 +0000
committerAndrew Cagney <cagney@redhat.com>2003-10-17 20:17:51 +0000
commit8db32d44ca88f0560e8a81aec6889fd1f8c7d348 (patch)
tree498d3a81ceb157dd793db5e92f967df83f8cc8e4 /gdb/target.h
parent1e3ff5ad7f7cd527f735fe5f36e20ba378f87f96 (diff)
downloadppe42-binutils-8db32d44ca88f0560e8a81aec6889fd1f8c7d348.tar.gz
ppe42-binutils-8db32d44ca88f0560e8a81aec6889fd1f8c7d348.zip
2003-10-17 Andrew Cagney <cagney@redhat.com>
* target.c (target_section_by_addr): New function. (do_xfer_memory): Use "target_section_by_addr". * target.h (target_section_by_addr): Declare.
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/target.h b/gdb/target.h
index b8c5a44b06..7bee270a09 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -1147,6 +1147,11 @@ struct section_table
bfd *bfd; /* BFD file pointer */
};
+/* Return the "section" containing the specified address. */
+struct section_table *target_section_by_addr (struct target_ops *target,
+ CORE_ADDR addr);
+
+
/* Builds a section table, given args BFD, SECTABLE_PTR, SECEND_PTR.
Returns 0 if OK, 1 on error. */
OpenPOWER on IntegriCloud