diff options
author | Doug Evans <xdje42@gmail.com> | 2015-08-15 16:25:53 -0700 |
---|---|---|
committer | Doug Evans <xdje42@gmail.com> | 2015-08-15 16:25:53 -0700 |
commit | 51cdc99310171d6c53d2d00103a0ce34374d0b9b (patch) | |
tree | 36b05c52658f854c89eeaddf375341e048d8d1b1 /gdb/psympriv.h | |
parent | 95cf586902b681310e63ee06d89ba2498d1d5dcf (diff) | |
download | gdb-51cdc99310171d6c53d2d00103a0ce34374d0b9b.zip gdb-51cdc99310171d6c53d2d00103a0ce34374d0b9b.tar.gz gdb-51cdc99310171d6c53d2d00103a0ce34374d0b9b.tar.bz2 |
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.
Diffstat (limited to 'gdb/psympriv.h')
-rw-r--r-- | gdb/psympriv.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/psympriv.h b/gdb/psympriv.h index 250fc08..3efb01f 100644 --- a/gdb/psympriv.h +++ b/gdb/psympriv.h @@ -42,13 +42,13 @@ struct partial_symbol /* Name space code. */ - ENUM_BITFIELD(domain_enum_tag) domain : 6; + ENUM_BITFIELD(domain_enum_tag) domain : SYMBOL_DOMAIN_BITS; /* Address class (for info_symbols). Note that we don't allow synthetic "aclass" values here at present, simply because there's no need. */ - ENUM_BITFIELD(address_class) aclass : 6; + ENUM_BITFIELD(address_class) aclass : SYMBOL_ACLASS_BITS; }; #define PSYMBOL_DOMAIN(psymbol) (psymbol)->domain |