* xcoffexec.c (vmap_symtab): Use new macros to access minimal
authorFred Fish <fnf@specifix.com>
Tue, 5 Jan 1993 04:20:54 +0000 (04:20 +0000)
committerFred Fish <fnf@specifix.com>
Tue, 5 Jan 1993 04:20:54 +0000 (04:20 +0000)
symbol name and value fields.

gdb/ChangeLog
gdb/xcoffexec.c

index 5244f9c58a59ce553a0d3a6389a25ad6ed8fcfd9..7f12df60df560f9353805c7d7f3e9f2ea1ee509d 100644 (file)
@@ -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
        <lang>-exp.y files.
 
index ed783c588e6ec01906c6e0e6044da928aa6ae76c..c787e5797107db67bec077148e81e0a53b43ff1a 100644 (file)
@@ -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;
        }