From: Elena Zannoni Date: Wed, 23 Oct 2002 23:28:17 +0000 (+0000) Subject: 2002-10-23 Elena Zannoni X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=88cda038b7b399c9bd94e176bf66bac447a86fe2;p=binutils-gdb.git 2002-10-23 Elena Zannoni * symtab.h: Update comment. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 05d0fc9f029..2e2faeb3c0b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2002-10-23 Elena Zannoni + + * symtab.h: Update comment. + 2002-10-23 Michael Snyder * printcmd.c (address_info): Restore quotes in output. diff --git a/gdb/symtab.h b/gdb/symtab.h index 941a7f12ad2..6c18ccb40af 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -126,6 +126,14 @@ struct general_symbol_info extern CORE_ADDR symbol_overlayed_address (CORE_ADDR, asection *); +/* Note that all the following SYMBOL_* macros are used with the + SYMBOL argument being either a partial symbol, a minimal symbol or + a full symbol. All three types have a ginfo field. In particular + the SYMBOL_INIT_LANGUAGE_SPECIFIC, SYMBOL_INIT_DEMANGLED_NAME, + SYMBOL_DEMANGLED_NAME macros cannot be entirely substituted by + functions, unless the callers are changed to pass in the ginfo + field only, instead of the SYMBOL parameter. */ + #define SYMBOL_NAME(symbol) (symbol)->ginfo.name #define SYMBOL_VALUE(symbol) (symbol)->ginfo.value.ivalue #define SYMBOL_VALUE_ADDRESS(symbol) (symbol)->ginfo.value.address