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/guile/scm-symbol.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/guile/scm-symbol.c')
-rw-r--r-- | gdb/guile/scm-symbol.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/guile/scm-symbol.c b/gdb/guile/scm-symbol.c index caad90f..32ef336 100644 --- a/gdb/guile/scm-symbol.c +++ b/gdb/guile/scm-symbol.c @@ -424,7 +424,7 @@ gdbscm_symbol_argument_p (SCM self) = syscm_get_valid_symbol_smob_arg_unsafe (self, SCM_ARG1, FUNC_NAME); const struct symbol *symbol = s_smob->symbol; - return scm_from_bool (SYMBOL_IS_ARGUMENT (symbol)); + return scm_from_bool (symbol->is_argument ()); } /* (symbol-constant? <gdb:symbol>) -> boolean */ @@ -469,7 +469,7 @@ gdbscm_symbol_variable_p (SCM self) theclass = symbol->aclass (); - return scm_from_bool (!SYMBOL_IS_ARGUMENT (symbol) + return scm_from_bool (!symbol->is_argument () && (theclass == LOC_LOCAL || theclass == LOC_REGISTER || theclass == LOC_STATIC || theclass == LOC_COMPUTED || theclass == LOC_OPTIMIZED_OUT)); |