(nlm_symfile_read): Use SYMBOL_CLASS to access symbol class.
authorStu Grossman <grossman@cygnus>
Thu, 9 Jun 1994 15:32:46 +0000 (15:32 +0000)
committerStu Grossman <grossman@cygnus>
Thu, 9 Jun 1994 15:32:46 +0000 (15:32 +0000)
gdb/nlmread.c

index a5d6186722bd716d4ed1deadfdd861eb019c2443..a12ca6341753b8650586a928a09dc09c2a6fdd0e 100644 (file)
@@ -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));