gdb/ChangeLog:
* symtab.h (SYMBOL_DOMAIN_BITS): New macro.
(struct symbol) <domain>: Use it.
+2014-12-23 Doug Evans <xdje42@gmail.com>
+
+ * symtab.h (SYMBOL_DOMAIN_BITS): New macro.
+ (struct symbol) <domain>: Use it.
+
2014-12-23 Doug Evans <xdje42@gmail.com>
* symtab.c (initialize_objfile_symbol): Renamed from initialize_symbol.
COMMON_BLOCK_DOMAIN
} domain_enum;
+/* The number of bits in a symbol used to represent the domain. */
+
+#define SYMBOL_DOMAIN_BITS 4
+
extern const char *domain_name (domain_enum);
/* Searching domains, used for `search_symbols'. Element numbers are
/* Domain code. */
- ENUM_BITFIELD(domain_enum_tag) domain : 6;
+ ENUM_BITFIELD(domain_enum_tag) domain : SYMBOL_DOMAIN_BITS;
/* Address class. This holds an index into the 'symbol_impls'
table. The actual enum address_class value is stored there,