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/symmisc.c | |
parent | d1eebf9a6f02786eb0d5f6b961b8d692d23e77b1 (diff) | |
download | binutils-66d7f48f8045adf266046df7ceb84161d5678cfa.zip binutils-66d7f48f8045adf266046df7ceb84161d5678cfa.tar.gz binutils-66d7f48f8045adf266046df7ceb84161d5678cfa.tar.bz2 |
gdb: remove SYMBOL_CLASS macro, add getter
Change-Id: I83211d5a47efc0564386e5b5ea4a29c00b1fd46a
Diffstat (limited to 'gdb/symmisc.c')
-rw-r--r-- | gdb/symmisc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c index 179b83e..5c96bf9 100644 --- a/gdb/symmisc.c +++ b/gdb/symmisc.c @@ -543,7 +543,7 @@ print_symbol (struct gdbarch *gdbarch, struct symbol *symbol, } else { - if (SYMBOL_CLASS (symbol) == LOC_TYPEDEF) + if (symbol->aclass () == LOC_TYPEDEF) fprintf_filtered (outfile, "typedef "); if (SYMBOL_TYPE (symbol)) { @@ -558,7 +558,7 @@ print_symbol (struct gdbarch *gdbarch, struct symbol *symbol, else fprintf_filtered (outfile, "%s ", symbol->print_name ()); - switch (SYMBOL_CLASS (symbol)) + switch (symbol->aclass ()) { case LOC_CONST: fprintf_filtered (outfile, "const %s (%s)", @@ -654,7 +654,7 @@ print_symbol (struct gdbarch *gdbarch, struct symbol *symbol, default: fprintf_filtered (outfile, "botched symbol class %x", - SYMBOL_CLASS (symbol)); + symbol->aclass ()); break; } } |