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/compile/compile-cplus-symbols.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/compile/compile-cplus-symbols.c')
-rw-r--r-- | gdb/compile/compile-cplus-symbols.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/compile/compile-cplus-symbols.c b/gdb/compile/compile-cplus-symbols.c index 7d26535..de7afca 100644 --- a/gdb/compile/compile-cplus-symbols.c +++ b/gdb/compile/compile-cplus-symbols.c @@ -53,7 +53,7 @@ convert_one_symbol (compile_cplus_instance *instance, instance->error_symbol_once (sym.symbol); - if (SYMBOL_CLASS (sym.symbol) == LOC_LABEL) + if (sym.symbol->aclass () == LOC_LABEL) sym_type = 0; else sym_type = instance->convert_type (SYMBOL_TYPE (sym.symbol)); @@ -70,7 +70,7 @@ convert_one_symbol (compile_cplus_instance *instance, std::string name; gdb::unique_xmalloc_ptr<char> symbol_name; - switch (SYMBOL_CLASS (sym.symbol)) + switch (sym.symbol->aclass ()) { case LOC_TYPEDEF: if (SYMBOL_TYPE (sym.symbol)->code () == TYPE_CODE_TYPEDEF) @@ -435,7 +435,7 @@ gcc_cplus_symbol_address (void *datum, struct gcc_cp_context *gcc_context, struct symbol *sym = lookup_symbol (identifier, nullptr, VAR_DOMAIN, nullptr).symbol; - if (sym != nullptr && SYMBOL_CLASS (sym) == LOC_BLOCK) + if (sym != nullptr && sym->aclass () == LOC_BLOCK) { if (compile_debug) fprintf_unfiltered (gdb_stdlog, |