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/coffread.c | |
parent | d1eebf9a6f02786eb0d5f6b961b8d692d23e77b1 (diff) | |
download | binutils-gdb-66d7f48f8045adf266046df7ceb84161d5678cfa.tar.gz |
gdb: remove SYMBOL_CLASS macro, add getter
Change-Id: I83211d5a47efc0564386e5b5ea4a29c00b1fd46a
Diffstat (limited to 'gdb/coffread.c')
-rw-r--r-- | gdb/coffread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/coffread.c b/gdb/coffread.c index d4c4226a8d2..9fef2801976 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -1490,7 +1490,7 @@ patch_opaque_types (struct symtab *s) Remove syms from the chain when their types are stored, but search the whole chain, as there may be several syms from different files with the same name. */ - if (SYMBOL_CLASS (real_sym) == LOC_TYPEDEF + if (real_sym->aclass () == LOC_TYPEDEF && SYMBOL_DOMAIN (real_sym) == VAR_DOMAIN && SYMBOL_TYPE (real_sym)->code () == TYPE_CODE_PTR && TYPE_LENGTH (TYPE_TARGET_TYPE (SYMBOL_TYPE (real_sym))) != 0) |