Rename tdesc_register_size to tdesc_register_bitsize
authorAlan Hayward <alan.hayward@arm.com>
Wed, 11 Jul 2018 07:34:50 +0000 (08:34 +0100)
committerAlan Hayward <alan.hayward@arm.com>
Wed, 11 Jul 2018 09:00:14 +0000 (10:00 +0100)
commit12863263d6f610ec161aead53df89586787b2ce4
tree43d90d6578bb481ff86f5286e3280fd0d3af82e4
parenta79eaed6a5075ca062d6d8ff3d7a5ccce5d1908f
Rename tdesc_register_size to tdesc_register_bitsize

tdesc_register_size returns number of bits, not bytes.
Rename to make it clearer.

Also, fixed bug in aarch64_get_tdesc_vq which assumed bytes.

gdb/
* target-descriptions.c (tdesc_register_bitsize): Rename.
* target-descriptions.h (tdesc_register_bitsize): Likewise.
* rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
* aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
gdb/ChangeLog
gdb/aarch64-tdep.c
gdb/rs6000-tdep.c
gdb/target-descriptions.c
gdb/target-descriptions.h