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.
This commit is contained in:
Andrew Cagney
2003-10-17 20:17:51 +00:00
parent 1e3ff5ad7f
commit 8db32d44ca
3 changed files with 31 additions and 14 deletions

View File

@@ -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. */