summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@redhat.com>2001-04-19 20:59:30 +0000
committerFrank Ch. Eigler <fche@redhat.com>2001-04-19 20:59:30 +0000
commitc05a50864bac746a77734cde0e39ffec3a8844a9 (patch)
tree2f0459cf88cd63b4334ee981727182f1efefe8e0
parent09e840f742809a33e51647dc6808b31856d2d067 (diff)
downloadgdb-c05a50864bac746a77734cde0e39ffec3a8844a9.tar.gz
* 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.
-rw-r--r--sim/common/ChangeLog6
-rw-r--r--sim/common/sim-load.c2
-rw-r--r--sim/common/sim-utils.c2
3 files changed, 10 insertions, 0 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 7ca57e7409e..fec11331e91 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -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.
diff --git a/sim/common/sim-load.c b/sim/common/sim-load.c
index 22fb33b777b..bfe3f15c4bd 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 3adbae5bbd4..6184f1b10eb 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;
}