summaryrefslogtreecommitdiff
path: root/gdb/gdb_bfd.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-08-22 15:50:37 +0000
committerTom Tromey <tromey@redhat.com>2012-08-22 15:50:37 +0000
commit1ae3e33fd54ef9ca560ac70e365e67152f1a3f53 (patch)
treecfb2ac7bb1c2a5f2d7bfa8ea6aca76eb38273bce /gdb/gdb_bfd.h
parentc4780b7ad5baaee7a84bef83839b4ca43156387e (diff)
downloadgdb-1ae3e33fd54ef9ca560ac70e365e67152f1a3f53.tar.gz
* 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 f131ba77719..5fd361cf899 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. */