aboutsummaryrefslogtreecommitdiff
path: root/gdb/nlmread.c
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1994-06-09 15:32:46 +0000
committerStu Grossman <grossman@cygnus>1994-06-09 15:32:46 +0000
commit7314b3ee04b3def5a9da78bc243f260b05225584 (patch)
treeae658e6fb8cef1bab4ed0c3cfab0526f172d6d10 /gdb/nlmread.c
parent64bb143c6b37bd128f2dd1fae06c0c9a6496b667 (diff)
downloadgdb-7314b3ee04b3def5a9da78bc243f260b05225584.zip
gdb-7314b3ee04b3def5a9da78bc243f260b05225584.tar.gz
gdb-7314b3ee04b3def5a9da78bc243f260b05225584.tar.bz2
(nlm_symfile_read): Use SYMBOL_CLASS to access symbol class.
Diffstat (limited to 'gdb/nlmread.c')
-rw-r--r--gdb/nlmread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/nlmread.c b/gdb/nlmread.c
index a5d6186..a12ca63 100644
--- a/gdb/nlmread.c
+++ b/gdb/nlmread.c
@@ -227,7 +227,7 @@ nlm_symfile_read (objfile, section_offsets, mainline)
mainsym = lookup_symbol ("main", NULL, VAR_NAMESPACE, NULL, NULL);
if (mainsym
- && mainsym->class == LOC_BLOCK)
+ && SYMBOL_CLASS(mainsym) == LOC_BLOCK)
{
objfile->ei.main_func_lowpc = BLOCK_START (SYMBOL_BLOCK_VALUE (mainsym));
objfile->ei.main_func_highpc = BLOCK_END (SYMBOL_BLOCK_VALUE (mainsym));