diff options
author | Ken Raeburn <raeburn@cygnus> | 1995-11-06 10:08:03 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1995-11-06 10:08:03 +0000 |
commit | 4fe6d901bd49996a77c84ab710918c94e84e9a23 (patch) | |
tree | efb4a153d072284395fe4dc4d61d88ca61e17782 /bfd/targets.c | |
parent | ffacb892eba97f8eb3019ee236fc8ea7e1825718 (diff) | |
download | gdb-4fe6d901bd49996a77c84ab710918c94e84e9a23.zip gdb-4fe6d901bd49996a77c84ab710918c94e84e9a23.tar.gz gdb-4fe6d901bd49996a77c84ab710918c94e84e9a23.tar.bz2 |
Changes for mmap; details in change log.
Added some new interfaces, and a new entry in the target vector. Under the new
interfaces, mmap will be used if available, otherwise malloc/seek/read, as
before. Old interfaces all still intact.
Most configurations (including all used by "--enable-targets=all") simply
changed to call the default routine for that entry in the target vector. I
might've missed some targets only included in special configurations.
Support for a.out symbol and string table reading now goes through new
interfaces, and will use mmap when available.
Linker hooks (e.g., avoiding reallocation under malloc) not ready yet.
Diffstat (limited to 'bfd/targets.c')
-rw-r--r-- | bfd/targets.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bfd/targets.c b/bfd/targets.c index 78a57a5..911f2a7 100644 --- a/bfd/targets.c +++ b/bfd/targets.c @@ -246,7 +246,9 @@ The general target vector. .CAT(NAME,_close_and_cleanup),\ .CAT(NAME,_bfd_free_cached_info),\ .CAT(NAME,_new_section_hook),\ -.CAT(NAME,_get_section_contents) +.CAT(NAME,_get_section_contents),\ +.CAT(NAME,_get_section_contents_in_window) +. . {* Called when the BFD is being closed to do any necessary cleanup. *} . boolean (*_close_and_cleanup) PARAMS ((bfd *)); . {* Ask the BFD to free all cached information. *} @@ -256,6 +258,9 @@ The general target vector. . {* Read the contents of a section. *} . boolean (*_bfd_get_section_contents) PARAMS ((bfd *, sec_ptr, PTR, . file_ptr, bfd_size_type)); +. boolean (*_bfd_get_section_contents_in_window) +. PARAMS ((bfd *, sec_ptr, bfd_window *, +. file_ptr, bfd_size_type)); . . {* Entry points to copy private data. *} .#define BFD_JUMP_TABLE_COPY(NAME)\ @@ -315,7 +320,7 @@ The general target vector. . struct orl *map, . unsigned int orl_count, . int stridx)); -. PTR (*_bfd_read_ar_hdr) PARAMS ((bfd *)); +. PTR (*_bfd_read_ar_hdr_fn) PARAMS ((bfd *)); . bfd * (*openr_next_archived_file) PARAMS ((bfd *arch, bfd *prev)); . int (*_bfd_stat_arch_elt) PARAMS ((bfd *, struct stat *)); . boolean (*_bfd_update_armap_timestamp) PARAMS ((bfd *)); |