diff options
author | Paul Pluzhnikov <ppluzhnikov@google.com> | 2009-08-21 17:57:17 +0000 |
---|---|---|
committer | Paul Pluzhnikov <ppluzhnikov@google.com> | 2009-08-21 17:57:17 +0000 |
commit | 3db741efb7056cc5720fce6303962042d2da3ec9 (patch) | |
tree | e6bb583aaa7842e4305528e3a8d1571e4e48f84e /gdb/objfiles.h | |
parent | 032b94c5fd9c2734a401798341eece75159ad0fb (diff) | |
download | gdb-3db741efb7056cc5720fce6303962042d2da3ec9.zip gdb-3db741efb7056cc5720fce6303962042d2da3ec9.tar.gz gdb-3db741efb7056cc5720fce6303962042d2da3ec9.tar.bz2 |
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.
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r-- | gdb/objfiles.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h index aecf8d8..bd9382b 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -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); |