aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdb_bfd.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-08-22 15:50:38 +0000
committerTom Tromey <tromey@redhat.com>2012-08-22 15:50:38 +0000
commite992eda4f6cece4cccbad807b1307168de924174 (patch)
tree807d0bed9e385f52d9a1e2a37e2d9749db76f5bc /gdb/gdb_bfd.h
parent6b81941e358ef95a24d90b971dd05f6c30dfa9a7 (diff)
downloadgdb-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.h4
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. */