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/f-exp.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/f-exp.y') diff --git a/gdb/f-exp.y b/gdb/f-exp.y index 42d3130..13f8c10 100644 --- a/gdb/f-exp.y +++ b/gdb/f-exp.y @@ -1487,7 +1487,7 @@ yylex (void) { result = lookup_symbol (tmp.c_str (), pstate->expression_context_block, domain, NULL); - if (result.symbol && SYMBOL_CLASS (result.symbol) == LOC_TYPEDEF) + if (result.symbol && result.symbol->aclass () == LOC_TYPEDEF) { yylval.tsym.type = SYMBOL_TYPE (result.symbol); return TYPENAME; -- cgit v1.1