aboutsummaryrefslogtreecommitdiff
path: root/gdb/block.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2021-11-21 22:26:24 -0500
committerSimon Marchi <simon.marchi@efficios.com>2022-02-06 16:03:46 -0500
commit66d7f48f8045adf266046df7ceb84161d5678cfa (patch)
tree473af71237afd358293f506901cdb13372d8dd72 /gdb/block.c
parentd1eebf9a6f02786eb0d5f6b961b8d692d23e77b1 (diff)
downloadgdb-66d7f48f8045adf266046df7ceb84161d5678cfa.zip
gdb-66d7f48f8045adf266046df7ceb84161d5678cfa.tar.gz
gdb-66d7f48f8045adf266046df7ceb84161d5678cfa.tar.bz2
gdb: remove SYMBOL_CLASS macro, add getter
Change-Id: I83211d5a47efc0564386e5b5ea4a29c00b1fd46a
Diffstat (limited to 'gdb/block.c')
-rw-r--r--gdb/block.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gdb/block.c b/gdb/block.c
index c0e3e46..38773af 100644
--- a/gdb/block.c
+++ b/gdb/block.c
@@ -665,7 +665,7 @@ bool
best_symbol (struct symbol *a, const domain_enum domain)
{
return (SYMBOL_DOMAIN (a) == domain
- && SYMBOL_CLASS (a) != LOC_UNRESOLVED);
+ && a->aclass () != LOC_UNRESOLVED);
}
/* See block.h. */
@@ -685,11 +685,10 @@ better_symbol (struct symbol *a, struct symbol *b, const domain_enum domain)
&& SYMBOL_DOMAIN (a) != domain)
return b;
- if (SYMBOL_CLASS (a) != LOC_UNRESOLVED
- && SYMBOL_CLASS (b) == LOC_UNRESOLVED)
+ if (a->aclass () != LOC_UNRESOLVED && b->aclass () == LOC_UNRESOLVED)
return a;
- if (SYMBOL_CLASS (b) != LOC_UNRESOLVED
- && SYMBOL_CLASS (a) == LOC_UNRESOLVED)
+
+ if (b->aclass () != LOC_UNRESOLVED && a->aclass () == LOC_UNRESOLVED)
return b;
return a;