gdb: add type::is_vector / type::set_is_vector
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 14 Sep 2020 15:08:02 +0000 (11:08 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 14 Sep 2020 15:08:02 +0000 (11:08 -0400)
commit2062087b358cc5320d52b32c50866dbd08fb2631
treebbf2de8f0df655ce90cbc94e2edbab7b0082919e
parenta409645d13f6cddef4827cf7240c01ec3e09559c
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
gdb/ChangeLog
gdb/arm-tdep.c
gdb/csky-tdep.c
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/i386-tdep.c
gdb/riscv-tdep.c
gdb/rs6000-tdep.c
gdb/target-descriptions.c
This page took 0.028622 seconds and 4 git commands to generate.