* 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

@ -42,7 +42,7 @@ static int highest_address_space_num;
/* Keep a registry of per-program_space data-pointers required by other GDB
modules. */
DEFINE_REGISTRY (program_space)
DEFINE_REGISTRY (program_space, REGISTRY_ACCESS_FIELD)