diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2021-11-21 22:26:24 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2022-02-06 16:03:46 -0500 |
commit | 66d7f48f8045adf266046df7ceb84161d5678cfa (patch) | |
tree | 473af71237afd358293f506901cdb13372d8dd72 /gdb/d-exp.y | |
parent | d1eebf9a6f02786eb0d5f6b961b8d692d23e77b1 (diff) | |
download | gdb-66d7f48f8045adf266046df7ceb84161d5678cfa.zip gdb-66d7f48f8045adf266046df7ceb84161d5678cfa.tar.gz gdb-66d7f48f8045adf266046df7ceb84161d5678cfa.tar.bz2 |
gdb: remove SYMBOL_CLASS macro, add getter
Change-Id: I83211d5a47efc0564386e5b5ea4a29c00b1fd46a
Diffstat (limited to 'gdb/d-exp.y')
-rw-r--r-- | gdb/d-exp.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/d-exp.y b/gdb/d-exp.y index ef858ec..601659d 100644 --- a/gdb/d-exp.y +++ b/gdb/d-exp.y @@ -448,7 +448,7 @@ PrimaryExpression: sym = lookup_symbol (copy.c_str (), pstate->expression_context_block, VAR_DOMAIN, &is_a_field_of_this); - if (sym.symbol && SYMBOL_CLASS (sym.symbol) != LOC_TYPEDEF) + if (sym.symbol && sym.symbol->aclass () != LOC_TYPEDEF) { if (symbol_read_needs_frame (sym.symbol)) pstate->block_tracker->update (sym); @@ -1341,7 +1341,7 @@ classify_name (struct parser_state *par_state, const struct block *block) std::string copy = copy_name (yylval.sval); sym = lookup_symbol (copy.c_str (), block, VAR_DOMAIN, &is_a_field_of_this); - if (sym.symbol && SYMBOL_CLASS (sym.symbol) == LOC_TYPEDEF) + if (sym.symbol && sym.symbol->aclass () == LOC_TYPEDEF) { yylval.tsym.type = SYMBOL_TYPE (sym.symbol); return TYPENAME; @@ -1388,7 +1388,7 @@ classify_inner_name (struct parser_state *par_state, if (yylval.ssym.sym.symbol == NULL) return ERROR; - if (SYMBOL_CLASS (yylval.ssym.sym.symbol) == LOC_TYPEDEF) + if (yylval.ssym.sym.symbol->aclass () == LOC_TYPEDEF) { yylval.tsym.type = SYMBOL_TYPE (yylval.ssym.sym.symbol); return TYPENAME; |