the following structs is returned. */
struct symbol_search
{
- symbol_search (int block_, struct symbol *symbol_)
+ symbol_search (block_enum block_, struct symbol *symbol_)
: block (block_),
symbol (symbol_)
{
msymbol.objfile = nullptr;
}
- symbol_search (int block_, struct minimal_symbol *minsym,
+ symbol_search (block_enum block_, struct minimal_symbol *minsym,
struct objfile *objfile)
: block (block_),
symbol (nullptr)
return compare_search_syms (*this, other) == 0;
}
- /* The block in which the match was found. Could be, for example,
- STATIC_BLOCK or GLOBAL_BLOCK. */
- int block;
+ /* The block in which the match was found. Either STATIC_BLOCK or
+ GLOBAL_BLOCK. */
+ block_enum block;
/* Information describing what was found.