diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-10-17 20:17:51 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-10-17 20:17:51 +0000 |
commit | 8db32d44ca88f0560e8a81aec6889fd1f8c7d348 (patch) | |
tree | 498d3a81ceb157dd793db5e92f967df83f8cc8e4 /gdb/target.h | |
parent | 1e3ff5ad7f7cd527f735fe5f36e20ba378f87f96 (diff) | |
download | gdb-8db32d44ca88f0560e8a81aec6889fd1f8c7d348.zip gdb-8db32d44ca88f0560e8a81aec6889fd1f8c7d348.tar.gz gdb-8db32d44ca88f0560e8a81aec6889fd1f8c7d348.tar.bz2 |
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.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/target.h b/gdb/target.h index b8c5a44..7bee270 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. */ |