aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
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/symtab.h
parentd1eebf9a6f02786eb0d5f6b961b8d692d23e77b1 (diff)
downloadbinutils-66d7f48f8045adf266046df7ceb84161d5678cfa.zip
binutils-66d7f48f8045adf266046df7ceb84161d5678cfa.tar.gz
binutils-66d7f48f8045adf266046df7ceb84161d5678cfa.tar.bz2
gdb: remove SYMBOL_CLASS macro, add getter
Change-Id: I83211d5a47efc0564386e5b5ea4a29c00b1fd46a
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r--gdb/symtab.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index 3a22d3e..a00b48f 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -1153,6 +1153,11 @@ struct symbol : public general_symbol_info, public allocate_on_obstack
return symbol_impls[this->aclass_index ()];
}
+ address_class aclass () const
+ {
+ return this->impl ().aclass;
+ }
+
/* Data type of value */
struct type *type = nullptr;
@@ -1256,7 +1261,6 @@ struct block_symbol
"private". */
#define SYMBOL_DOMAIN(symbol) (symbol)->domain
-#define SYMBOL_CLASS(symbol) ((symbol)->impl ().aclass)
#define SYMBOL_OBJFILE_OWNED(symbol) ((symbol)->is_objfile_owned)
#define SYMBOL_IS_ARGUMENT(symbol) (symbol)->is_argument
#define SYMBOL_INLINED(symbol) (symbol)->is_inlined