gdb: remove SYMBOL_TYPE macro
Add a getter and a setter for a symbol's type. Remove the corresponding macro and adjust all callers. Change-Id: Ie1a137744c5bfe1df4d4f9ae5541c5299577c8de
This commit is contained in:
parent
f5abd8f234
commit
5f9c5a63ce
57 changed files with 342 additions and 333 deletions
|
@ -1511,7 +1511,7 @@ rust_structop::evaluate_funcall (struct type *expect_type,
|
|||
if (sym.symbol == NULL)
|
||||
error (_("Could not find function named '%s'"), name.c_str ());
|
||||
|
||||
struct type *fn_type = SYMBOL_TYPE (sym.symbol);
|
||||
struct type *fn_type = sym.symbol->type ();
|
||||
if (fn_type->num_fields () == 0)
|
||||
error (_("Function '%s' takes no arguments"), name.c_str ());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue