aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorDoug Evans <xdje42@gmail.com>2014-12-23 07:31:00 -0800
committerDoug Evans <xdje42@gmail.com>2014-12-23 07:31:00 -0800
commitc01feb367543270196672dedf9a8365a2d8d3cff (patch)
tree9e9305c582ea334e53a997900feafd0d2a9aca18 /gdb/symtab.h
parent38bf1463f46546a9d839ce87146f71a7d2a62638 (diff)
downloadgdb-c01feb367543270196672dedf9a8365a2d8d3cff.zip
gdb-c01feb367543270196672dedf9a8365a2d8d3cff.tar.gz
gdb-c01feb367543270196672dedf9a8365a2d8d3cff.tar.bz2
symtab.h (SYMBOL_DOMAIN_BITS): New macro.
gdb/ChangeLog: * symtab.h (SYMBOL_DOMAIN_BITS): New macro. (struct symbol) <domain>: Use it.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r--gdb/symtab.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index 3a3384d..b3a9a6b 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,