symtab.h (SYMBOL_DOMAIN_BITS): New macro.
authorDoug Evans <xdje42@gmail.com>
Tue, 23 Dec 2014 15:31:00 +0000 (07:31 -0800)
committerDoug Evans <xdje42@gmail.com>
Tue, 23 Dec 2014 15:31:00 +0000 (07:31 -0800)
gdb/ChangeLog:

* symtab.h (SYMBOL_DOMAIN_BITS): New macro.
(struct symbol) <domain>: Use it.

gdb/ChangeLog
gdb/symtab.h

index 560ea908d949e3bf15fb784fb1de6db8ae08b552..acf692fdcaf3ee6b537facbb88f9dd32b40d54e8 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 3a3384d3433c9078be74939ed30a898bf00dbc30..b3a9a6b74eb60f834ecad42f9531ccd3973a15c3 100644 (file)
@@ -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,
This page took 0.041386 seconds and 4 git commands to generate.