mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-31 01:45:52 +08:00
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:
@ -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);
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user