* bug fix

2001-04-19  Frank Ch. Eigler  <fche@redhat.com>

	* sim-utils.c (sim_analyze_program): Call bfd_cache_close after
	we're finished with its immediate use.
	* sim-load.c (sim_load_file): Ditto.
This commit is contained in:
Frank Ch. Eigler 2001-04-19 20:59:30 +00:00
parent 539ffe0b42
commit 6ec9f4a9be
3 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2001-04-19 Frank Ch. Eigler <fche@redhat.com>
* sim-utils.c (sim_analyze_program): Call bfd_cache_close after
we're finished with its immediate use.
* sim-load.c (sim_load_file): Ditto.
2001-03-16 Frank Ch. Eigler <fche@redhat.com>
Add support for mmap-based memory regions.

View File

@ -166,6 +166,8 @@ sim_load_file (sd, myname, callback, prog, prog_bfd, verbose_p, lma_p, do_write)
report_transfer_performance (callback, data_count, start_time, end_time);
}
bfd_cache_close (result_bfd);
return result_bfd;
}

View File

@ -287,6 +287,8 @@ sim_analyze_program (sd, prog_name, prog_bfd)
break;
}
bfd_cache_close (prog_bfd);
return SIM_RC_OK;
}