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
This commit is contained in:
Simon Marchi 2022-01-27 22:06:47 -05:00
parent 7b3ecc7555
commit d9743061f9
19 changed files with 49 additions and 40 deletions

View file

@ -191,9 +191,9 @@ mi_should_print (struct symbol *sym, enum mi_print_types type)
case LOC_REGISTER: /* register */
case LOC_COMPUTED: /* computed location */
if (type == MI_PRINT_LOCALS)
print_me = ! SYMBOL_IS_ARGUMENT (sym);
print_me = ! sym->is_argument ();
else
print_me = SYMBOL_IS_ARGUMENT (sym);
print_me = sym->is_argument ();
}
return print_me;
}