* registry.h (struct registry_fields): New.

(REGISTRY_FIELDS): Redefine.
	(REGISTRY_ACCESS_FIELD): New macro.
	(DEFINE_REGISTRY): Add ACCESS argument.  Update defined
	functions.
This commit is contained in:
Tom Tromey 2012-08-22 15:31:12 +00:00
parent 8e260fc026
commit 6b81941e35
5 changed files with 63 additions and 27 deletions

View file

@ -58,7 +58,7 @@
/* Keep a registry of per-objfile data-pointers required by other GDB
modules. */
DEFINE_REGISTRY (objfile)
DEFINE_REGISTRY (objfile, REGISTRY_ACCESS_FIELD)
/* Externally visible variables that are owned by this module.
See declarations in objfile.h for more info. */