From: Ulrich Weigand Date: Thu, 22 May 2008 17:00:50 +0000 (+0000) Subject: * symtab.h (struct symbol): Make "aux_value" member a void pointer X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=10f4ecb8fa4a53ca89668ef8f175b9f6c71f6736;hp=c3b22bd09c9ba99146f0dad3aac73e170cf051d6;p=deliverable%2Fbinutils-gdb.git * symtab.h (struct symbol): Make "aux_value" member a void pointer instead of a union. (SYMBOL_LOCATION_BATON): Update. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index de0dd0a1a1..0cf9e53a49 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2008-05-22 Ulrich Weigand + + * symtab.h (struct symbol): Make "aux_value" member a void pointer + instead of a union. + (SYMBOL_LOCATION_BATON): Update. + 2008-05-22 Ulrich Weigand * symtab.h (enum address_class): Remove LOC_BASEREG and diff --git a/gdb/symtab.h b/gdb/symtab.h index 5b28d10ff1..cd9936a19d 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -587,25 +587,20 @@ struct symbol const struct symbol_ops *ops; - /* Some symbols require additional information to be recorded on a - per-symbol basis. Stash those values here. */ - - union - { - /* An arbitrary data pointer. Note that this data must be - allocated using the same obstack as the symbol itself. */ - /* So far it is only used by LOC_COMPUTED and LOC_COMPUTED_ARG to - find the location information. For a LOC_BLOCK symbol - for a function in a compilation unit compiled with DWARF 2 - information, this is information used internally by the DWARF 2 - code --- specifically, the location expression for the frame - base for this function. */ - /* FIXME drow/2003-02-21: For the LOC_BLOCK case, it might be better - to add a magic symbol to the block containing this information, - or to have a generic debug info annotation slot for symbols. */ - void *ptr; - } - aux_value; + /* An arbitrary data pointer, allowing symbol readers to record + additional information on a per-symbol basis. Note that this data + must be allocated using the same obstack as the symbol itself. */ + /* So far it is only used by LOC_COMPUTED and LOC_COMPUTED_ARG to + find the location information. For a LOC_BLOCK symbol + for a function in a compilation unit compiled with DWARF 2 + information, this is information used internally by the DWARF 2 + code --- specifically, the location expression for the frame + base for this function. */ + /* FIXME drow/2003-02-21: For the LOC_BLOCK case, it might be better + to add a magic symbol to the block containing this information, + or to have a generic debug info annotation slot for symbols. */ + + void *aux_value; struct symbol *hash_next; }; @@ -617,7 +612,7 @@ struct symbol #define SYMBOL_LINE(symbol) (symbol)->line #define SYMBOL_SYMTAB(symbol) (symbol)->symtab #define SYMBOL_OPS(symbol) (symbol)->ops -#define SYMBOL_LOCATION_BATON(symbol) (symbol)->aux_value.ptr +#define SYMBOL_LOCATION_BATON(symbol) (symbol)->aux_value /* A partial_symbol records the name, domain, and address class of symbols whose types we have not parsed yet. For functions, it also