* bug fix
authorFrank Ch. Eigler <fche@redhat.com>
Thu, 19 Apr 2001 20:59:30 +0000 (20:59 +0000)
committerFrank Ch. Eigler <fche@redhat.com>
Thu, 19 Apr 2001 20:59:30 +0000 (20:59 +0000)
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.

sim/common/ChangeLog
sim/common/sim-load.c
sim/common/sim-utils.c

index 7ca57e7409e0416663e511ce41989c59fca42bcd..fec11331e9159f9484b1f892b4d66f75ef0ac2de 100644 (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.
index 22fb33b777b6201d1c5588b69165d31d67d3023b..bfe3f15c4bde25624457029ebd4626b514b26a2a 100644 (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;
 }
 
index 3adbae5bbd4b023eea6c12e4e1f568218ed7fa42..6184f1b10ebffbfd910b65f2568a164359140ff4 100644 (file)
@@ -287,6 +287,8 @@ sim_analyze_program (sd, prog_name, prog_bfd)
        break;
       }
 
+  bfd_cache_close (prog_bfd);
+
   return SIM_RC_OK;
 }
 \f