From: Fred Fish Date: Tue, 5 Jan 1993 04:20:54 +0000 (+0000) Subject: * xcoffexec.c (vmap_symtab): Use new macros to access minimal X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2eda1cdf948c3020a80b64636d9e4a0164e96b8e;p=binutils-gdb.git * xcoffexec.c (vmap_symtab): Use new macros to access minimal symbol name and value fields. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5244f9c58a5..7f12df60df5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ Mon Jan 4 16:54:18 1993 Fred Fish (fnf@cygnus.com) + * xcoffexec.c (vmap_symtab): Use new macros to access minimal + symbol name and value fields. + * c-exp.y (yylex): Make static, to match prototype and other -exp.y files. diff --git a/gdb/xcoffexec.c b/gdb/xcoffexec.c index ed783c588e6..c787e579710 100644 --- a/gdb/xcoffexec.c +++ b/gdb/xcoffexec.c @@ -432,10 +432,11 @@ struct stat *vip; ALL_MSYMBOLS (objfile, msymbol) #else for (msymbol = objfile->msymbols; - msymbol->name || msymbol->address; (msymbol)++) + SYMBOL_NAME (msymbol) || SYMBOL_VALUE_ADDRESS (msymbol); + (msymbol)++) #endif - if (msymbol->address < TEXT_SEGMENT_BASE) - msymbol -> address += vp->tstart - old_start; + if (SYMBOL_VALUE_ADDRESS (msymbol) < TEXT_SEGMENT_BASE) + SYMBOL_VALUE_ADDRESS (msymbol) += vp->tstart - old_start; break; }