diff options
author | Fred Fish <fnf@specifix.com> | 1993-01-05 04:20:54 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1993-01-05 04:20:54 +0000 |
commit | 2eda1cdf948c3020a80b64636d9e4a0164e96b8e (patch) | |
tree | cbfa021d4128a8ce317eabf4c2bcfc6edc29353f | |
parent | 533d1dc743abbc739ddd57f686b4c47a487515d5 (diff) | |
download | gdb-2eda1cdf948c3020a80b64636d9e4a0164e96b8e.zip gdb-2eda1cdf948c3020a80b64636d9e4a0164e96b8e.tar.gz gdb-2eda1cdf948c3020a80b64636d9e4a0164e96b8e.tar.bz2 |
* xcoffexec.c (vmap_symtab): Use new macros to access minimal
symbol name and value fields.
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/xcoffexec.c | 7 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5244f9c..7f12df6 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 <lang>-exp.y files. diff --git a/gdb/xcoffexec.c b/gdb/xcoffexec.c index ed783c5..c787e57 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; } |