diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2022-01-27 21:50:32 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2022-02-06 16:03:46 -0500 |
commit | 6c9c307c67043b55a209af402246404d89f992c9 (patch) | |
tree | 20a8edd6e245153957a63a702f8f2eef122867c6 /gdb/compile | |
parent | 66d7f48f8045adf266046df7ceb84161d5678cfa (diff) | |
download | gdb-6c9c307c67043b55a209af402246404d89f992c9.zip gdb-6c9c307c67043b55a209af402246404d89f992c9.tar.gz gdb-6c9c307c67043b55a209af402246404d89f992c9.tar.bz2 |
gdb: remove SYMBOL_DOMAIN macro
Add a getter and a setter for a symbol's domain. Remove the
corresponding macro and adjust all callers.
Change-Id: I54465b50ac89739c663859a726aef8cdc6e4b8f3
Diffstat (limited to 'gdb/compile')
-rw-r--r-- | gdb/compile/compile-c-symbols.c | 2 | ||||
-rw-r--r-- | gdb/compile/compile-cplus-symbols.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gdb/compile/compile-c-symbols.c b/gdb/compile/compile-c-symbols.c index 8602480..41746c2 100644 --- a/gdb/compile/compile-c-symbols.c +++ b/gdb/compile/compile-c-symbols.c @@ -67,7 +67,7 @@ convert_one_symbol (compile_c_instance *context, else sym_type = context->convert_type (SYMBOL_TYPE (sym.symbol)); - if (SYMBOL_DOMAIN (sym.symbol) == STRUCT_DOMAIN) + if (sym.symbol->domain () == STRUCT_DOMAIN) { /* Binding a tag, so we don't need to build a decl. */ context->plugin ().tagbind (sym.symbol->natural_name (), diff --git a/gdb/compile/compile-cplus-symbols.c b/gdb/compile/compile-cplus-symbols.c index de7afca..3a24aa7 100644 --- a/gdb/compile/compile-cplus-symbols.c +++ b/gdb/compile/compile-cplus-symbols.c @@ -58,7 +58,7 @@ convert_one_symbol (compile_cplus_instance *instance, else sym_type = instance->convert_type (SYMBOL_TYPE (sym.symbol)); - if (SYMBOL_DOMAIN (sym.symbol) == STRUCT_DOMAIN) + if (sym.symbol->domain () == STRUCT_DOMAIN) { /* Nothing to do. */ } @@ -374,7 +374,7 @@ gcc_cplus_convert_symbol (void *datum, { found = true; convert_symbol_sym (instance, identifier, it, - SYMBOL_DOMAIN (it.symbol)); + it.symbol->domain ()); } } |