gdb: add type::is_vector / type::set_is_vector
Add the `is_vector` and `set_is_vector` methods on `struct type`, in order to remove the `TYPE_VECTOR` macro. In this patch, the macro is changed to use the getter, so all the call sites of the macro that are used as a setter are changed to use the setter method directly. The next patch will remove the macro completely. gdb/ChangeLog: * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods. (TYPE_VECTOR): Use type::is_vector, change all write call sites to use type::set_is_vector. Change-Id: I415e8d169f058662e0750329bfa4017bea3ca0cb
This commit is contained in:
parent
a409645d13
commit
2062087b35
9 changed files with 29 additions and 13 deletions
|
@ -1428,7 +1428,7 @@ make_vector_type (struct type *array_type)
|
|||
TYPE_TARGET_TYPE (inner_array) = elt_type;
|
||||
}
|
||||
|
||||
TYPE_VECTOR (array_type) = 1;
|
||||
array_type->set_is_vector (true);
|
||||
}
|
||||
|
||||
struct type *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue