(nlm_symfile_read): Use SYMBOL_CLASS to access symbol class.
This commit is contained in:
parent
64bb143c6b
commit
7314b3ee04
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue