From c01feb367543270196672dedf9a8365a2d8d3cff Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Tue, 23 Dec 2014 07:31:00 -0800 Subject: [PATCH] symtab.h (SYMBOL_DOMAIN_BITS): New macro. gdb/ChangeLog: * symtab.h (SYMBOL_DOMAIN_BITS): New macro. (struct symbol) : Use it. --- gdb/ChangeLog | 5 +++++ gdb/symtab.h | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 560ea908d94..acf692fdcaf 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-12-23 Doug Evans + + * symtab.h (SYMBOL_DOMAIN_BITS): New macro. + (struct symbol) : Use it. + 2014-12-23 Doug Evans * symtab.c (initialize_objfile_symbol): Renamed from initialize_symbol. diff --git a/gdb/symtab.h b/gdb/symtab.h index 3a3384d3433..b3a9a6b74eb 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -461,6 +461,10 @@ typedef enum domain_enum_tag 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 @@ -714,7 +718,7 @@ struct symbol /* 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, -- 2.30.2