Use macros for some enum bit field sizes.
authorDoug Evans <xdje42@gmail.com>
Sat, 15 Aug 2015 23:25:53 +0000 (16:25 -0700)
committerDoug Evans <xdje42@gmail.com>
Sat, 15 Aug 2015 23:25:53 +0000 (16:25 -0700)
commit51cdc99310171d6c53d2d00103a0ce34374d0b9b
tree36b05c52658f854c89eeaddf375341e048d8d1b1
parent95cf586902b681310e63ee06d89ba2498d1d5dcf
Use macros for some enum bit field sizes.

gdb/ChangeLog:

* defs.h (LANGUAGE_BITS): Define.
* psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
(partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
* symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
(minimal_symbol_type): Add nr_minsym_types.
(MINSYM_TYPE_BITS): Define.
(minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
(domain_enum_tag): Add NR_DOMAINS.
(SYMBOL_DOMAIN_BITS): Change from 4 to 3.
(SYMBOL_ACLASS_BITS): Define from 6 to 5.
gdb/ChangeLog
gdb/defs.h
gdb/psympriv.h
gdb/symtab.h