aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2022-01-27 21:50:32 -0500
committerSimon Marchi <simon.marchi@efficios.com>2022-02-06 16:03:46 -0500
commit6c9c307c67043b55a209af402246404d89f992c9 (patch)
tree20a8edd6e245153957a63a702f8f2eef122867c6 /gdb/stack.c
parent66d7f48f8045adf266046df7ceb84161d5678cfa (diff)
downloadgdb-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/stack.c')
-rw-r--r--gdb/stack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index 1df3f6b..fcdcd35 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -2258,7 +2258,7 @@ iterate_over_block_locals (const struct block *b,
case LOC_OPTIMIZED_OUT:
if (SYMBOL_IS_ARGUMENT (sym))
break;
- if (SYMBOL_DOMAIN (sym) == COMMON_BLOCK_DOMAIN)
+ if (sym->domain () == COMMON_BLOCK_DOMAIN)
break;
(*cb) (sym->print_name (), sym, cb_data);
break;