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/p-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/p-exp.y')
-rw-r--r-- | gdb/p-exp.y | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/p-exp.y b/gdb/p-exp.y index 10738d0..c7fa0dc 100644 --- a/gdb/p-exp.y +++ b/gdb/p-exp.y @@ -635,7 +635,7 @@ block : block COLONCOLON name = lookup_symbol (copy.c_str (), $1, VAR_DOMAIN, NULL).symbol; - if (!tem || SYMBOL_CLASS (tem) != LOC_BLOCK) + if (!tem || tem->aclass () != LOC_BLOCK) error (_("No function \"%s\" in specified context."), copy.c_str ()); $$ = SYMBOL_BLOCK_VALUE (tem); } @@ -1544,7 +1544,7 @@ yylex (void) /* Call lookup_symtab, not lookup_partial_symtab, in case there are no psymtabs (coff, xcoff, or some future change to blow away the psymtabs once once symbols are read). */ - if ((sym && SYMBOL_CLASS (sym) == LOC_BLOCK) + if ((sym && sym->aclass () == LOC_BLOCK) || lookup_symtab (tmp.c_str ())) { yylval.ssym.sym.symbol = sym; @@ -1553,7 +1553,7 @@ yylex (void) free (uptokstart); return BLOCKNAME; } - if (sym && SYMBOL_CLASS (sym) == LOC_TYPEDEF) + if (sym && sym->aclass () == LOC_TYPEDEF) { #if 1 /* Despite the following flaw, we need to keep this code enabled. @@ -1622,7 +1622,7 @@ yylex (void) VAR_DOMAIN, NULL).symbol; if (cur_sym) { - if (SYMBOL_CLASS (cur_sym) == LOC_TYPEDEF) + if (cur_sym->aclass () == LOC_TYPEDEF) { best_sym = cur_sym; pstate->lexptr = p; |