* solist.h (struct target_so_ops): New member bfd_open.
[binutils-gdb.git] / gdb / ChangeLog
index 5a8f5d3d83fabb3b13093f57a98f8c1f4a5ecfa1..25da5e20882431d731da3e90e21bb9aef7118490 100644 (file)
@@ -1,3 +1,20 @@
+2009-01-15  Ulrich Weigand  <uweigand@de.ibm.com>
+           Tristan Gingold  <gingold@adacore.com>
+
+       * solist.h (struct target_so_ops): New member bfd_open.
+       (solib_find): Add prototype.
+       (solib_bfd_fopen): Add prototype.
+       * solib.c (solib_find, solib_bfd_fopen): New functions, extracted
+       from solib_bfd_open.
+       (solib_bfd_open): Use ops->bfd_open override if present.  Call
+       solib_find and solib_bfd_open otherwise.
+
+       * objfiles.h (OBJF_KEEPBFD): New define.
+       * objfiles.c (free_objfile): Do not close BFD if OBJF_KEEPBFD
+       objfile flag is set.
+       * solib.c (symbol_add_stub): Do not allocate second BFD for
+       shared library; use OBJF_KEEPBFD flag on solib objfile.
+
 2009-01-15  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * frame.c (get_frame_arch): Abort if called with NULL this_frame.