diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2022-01-27 22:06:47 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2022-02-06 16:03:46 -0500 |
commit | d9743061f92738a6c3f311d640e614a5a2f01b1e (patch) | |
tree | 526c9f1911ab21c38bcee992174f7a7457bba773 /gdb/stack.c | |
parent | 7b3ecc7555438f05dda657d0ed6a43ee71a3901d (diff) | |
download | gdb-d9743061f92738a6c3f311d640e614a5a2f01b1e.zip gdb-d9743061f92738a6c3f311d640e614a5a2f01b1e.tar.gz gdb-d9743061f92738a6c3f311d640e614a5a2f01b1e.tar.bz2 |
gdb: remove SYMBOL_IS_ARGUMENT macro
Add a getter and a setter for whether a symbol is an argument. Remove
the corresponding macro and adjust all callers.
Change-Id: I71b4f0465f3dfd2ed8b9e140bd3f7d5eb8d9ee81
Diffstat (limited to 'gdb/stack.c')
-rw-r--r-- | gdb/stack.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/stack.c b/gdb/stack.c index fcdcd35..834e016 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -763,7 +763,7 @@ print_frame_args (const frame_print_options &fp_opts, /* Keep track of the highest stack argument offset seen, and skip over any kinds of symbols we don't care about. */ - if (!SYMBOL_IS_ARGUMENT (sym)) + if (!sym->is_argument ()) continue; if (!print_names) @@ -829,7 +829,7 @@ print_frame_args (const frame_print_options &fp_opts, b, VAR_DOMAIN).symbol; gdb_assert (nsym != NULL); if (nsym->aclass () == LOC_REGISTER - && !SYMBOL_IS_ARGUMENT (nsym)) + && !nsym->is_argument ()) { /* There is a LOC_ARG/LOC_REGISTER pair. This means that it was passed on the stack and loaded into a @@ -2256,7 +2256,7 @@ iterate_over_block_locals (const struct block *b, case LOC_STATIC: case LOC_COMPUTED: case LOC_OPTIMIZED_OUT: - if (SYMBOL_IS_ARGUMENT (sym)) + if (sym->is_argument ()) break; if (sym->domain () == COMMON_BLOCK_DOMAIN) break; @@ -2503,7 +2503,7 @@ iterate_over_block_arg_vars (const struct block *b, ALL_BLOCK_SYMBOLS (b, iter, sym) { /* Don't worry about things which aren't arguments. */ - if (SYMBOL_IS_ARGUMENT (sym)) + if (sym->is_argument ()) { /* We have to look up the symbol because arguments can have two entries (one a parameter, one a local) and the one we |