From 66d7f48f8045adf266046df7ceb84161d5678cfa Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Sun, 21 Nov 2021 22:26:24 -0500 Subject: gdb: remove SYMBOL_CLASS macro, add getter Change-Id: I83211d5a47efc0564386e5b5ea4a29c00b1fd46a --- gdb/valops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/valops.c') diff --git a/gdb/valops.c b/gdb/valops.c index e091c44..9767b2c 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -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); -- cgit v1.1