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.
This commit is contained in:
Paul Pluzhnikov
2009-08-21 17:57:17 +00:00
parent 032b94c5fd
commit 3db741efb7
4 changed files with 32 additions and 17 deletions

View File

@ -505,6 +505,7 @@ extern void set_objfile_data (struct objfile *objfile,
extern void *objfile_data (struct objfile *objfile,
const struct objfile_data *data);
extern struct bfd *gdb_bfd_ref (struct bfd *abfd);
extern void gdb_bfd_unref (struct bfd *abfd);