2012-09-13 Pedro Alves <palves@redhat.com>
authorPedro Alves <palves@redhat.com>
Thu, 13 Sep 2012 14:35:16 +0000 (14:35 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 13 Sep 2012 14:35:16 +0000 (14:35 +0000)
commitaa0fbdd82c86c683f6d2bf39dcc9dedfc9c7a8d0
tree30ce3202e64f4fd6ed94098c0302df99c060afd9
parent80c4bb52e58e3e1b83253c9f567ea6fb14d71ad3
2012-09-13  Pedro Alves  <palves@redhat.com>

* Makefile.in (COMMON_OBS): Add registry.o.
* registry.c: New file.
* registry.h (struct registry_container): Declare.
(registry_data_callback): New typedef.
(struct registry_data, struct registry_data_registration, struct
registry_data_registry): New type.
(register_data_with_cleanup, registry_alloc_data)
(registry_callback_adaptor, registry_clear_data)
(registry_container_free_data, registry_set_data, registry_data):
Declare.
(DEFINE_REGISTRY): Refactor structures and functions as shims over
the new common structures and functions.
(DECLARE_REGISTRY): Declare struct TAG ## _data.  Use the tagged
callback typedefs.
gdb/ChangeLog
gdb/Makefile.in
gdb/registry.c [new file with mode: 0644]
gdb/registry.h