2009-08-21 Paul Pluzhnikov <ppluzhnikov@google.com>
authorPaul Pluzhnikov <ppluzhnikov@google.com>
Fri, 21 Aug 2009 17:57:17 +0000 (17:57 +0000)
committerPaul Pluzhnikov <ppluzhnikov@google.com>
Fri, 21 Aug 2009 17:57:17 +0000 (17:57 +0000)
commit3db741efb7056cc5720fce6303962042d2da3ec9
treee6bb583aaa7842e4305528e3a8d1571e4e48f84e
parent032b94c5fd9c2734a401798341eece75159ad0fb
2009-08-21  Paul Pluzhnikov  <ppluzhnikov@google.com>

* objfiles.h (gdb_bfd_ref): New prototype.
* objfiles.c (gdb_bfd_ref): New function.
(allocate_objfile): Call it.
(gdb_bfd_unref): Adjust assertion.
* solib.c (solib_map_sections): Add reference.
(symbol_add_stub): Don't add reference here.
* symfile.c (reread_symbols): Add reference.
gdb/objfiles.c
gdb/objfiles.h
gdb/solib.c
gdb/symfile.c