diff options
author | Tom Tromey <tromey@redhat.com> | 2012-08-22 15:50:38 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-08-22 15:50:38 +0000 |
commit | e992eda4f6cece4cccbad807b1307168de924174 (patch) | |
tree | 807d0bed9e385f52d9a1e2a37e2d9749db76f5bc /gdb/gdb_bfd.h | |
parent | 6b81941e358ef95a24d90b971dd05f6c30dfa9a7 (diff) | |
download | gdb-e992eda4f6cece4cccbad807b1307168de924174.zip gdb-e992eda4f6cece4cccbad807b1307168de924174.tar.gz gdb-e992eda4f6cece4cccbad807b1307168de924174.tar.bz2 |
* gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
* gdb_bfd.c: Use DEFINE_REGISTRY.
(struct gdb_bfd_data): Add REGISTRY_FIELDS.
(gdb_bfd_ref): Call bfd_alloc_data.
(gdb_bfd_unref): Call bfd_free_data.
Diffstat (limited to 'gdb/gdb_bfd.h')
-rw-r--r-- | gdb/gdb_bfd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/gdb_bfd.h b/gdb/gdb_bfd.h index f131ba7..5fd361c 100644 --- a/gdb/gdb_bfd.h +++ b/gdb/gdb_bfd.h @@ -21,6 +21,10 @@ #ifndef GDB_BFD_H #define GDB_BFD_H +#include "registry.h" + +DECLARE_REGISTRY (bfd); + /* Make a copy ABFD's filename using bfd_alloc, and reassign it to the BFD. This ensures that the BFD's filename has the same lifetime as the BFD itself. */ |