mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-10 09:59:06 +08:00
gdb: remove SYMBOL_CLASS macro, add getter
Change-Id: I83211d5a47efc0564386e5b5ea4a29c00b1fd46a
This commit is contained in:
@ -120,7 +120,7 @@ find_function_in_inferior (const char *name, struct objfile **objf_p)
|
||||
sym = lookup_symbol (name, 0, VAR_DOMAIN, 0);
|
||||
if (sym.symbol != NULL)
|
||||
{
|
||||
if (SYMBOL_CLASS (sym.symbol) != LOC_BLOCK)
|
||||
if (sym.symbol->aclass () != LOC_BLOCK)
|
||||
{
|
||||
error (_("\"%s\" exists in this program but is not a function."),
|
||||
name);
|
||||
@ -3779,7 +3779,7 @@ value_maybe_namespace_elt (const struct type *curtype,
|
||||
if (sym.symbol == NULL)
|
||||
return NULL;
|
||||
else if ((noside == EVAL_AVOID_SIDE_EFFECTS)
|
||||
&& (SYMBOL_CLASS (sym.symbol) == LOC_TYPEDEF))
|
||||
&& (sym.symbol->aclass () == LOC_TYPEDEF))
|
||||
result = allocate_value (SYMBOL_TYPE (sym.symbol));
|
||||
else
|
||||
result = value_of_variable (sym.symbol, sym.block);
|
||||
|
Reference in New Issue
Block a user