From 6ec9f4a9be9ea349ba7614ea564052c30e5ce2e4 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Thu, 19 Apr 2001 20:59:30 +0000 Subject: * bug fix 2001-04-19 Frank Ch. Eigler * 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. --- sim/common/ChangeLog | 6 ++++++ sim/common/sim-load.c | 2 ++ sim/common/sim-utils.c | 2 ++ 3 files changed, 10 insertions(+) (limited to 'sim') diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 7ca57e7..fec1133 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,9 @@ +2001-04-19 Frank Ch. Eigler + + * 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 Add support for mmap-based memory regions. diff --git a/sim/common/sim-load.c b/sim/common/sim-load.c index 22fb33b..bfe3f15 100644 --- a/sim/common/sim-load.c +++ b/sim/common/sim-load.c @@ -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; } diff --git a/sim/common/sim-utils.c b/sim/common/sim-utils.c index 3adbae5..6184f1b 100644 --- a/sim/common/sim-utils.c +++ b/sim/common/sim-utils.c @@ -287,6 +287,8 @@ sim_analyze_program (sd, prog_name, prog_bfd) break; } + bfd_cache_close (prog_bfd); + return SIM_RC_OK; } -- cgit v1.1