[PATCH 00/10] Use std::vector and std::string throughout target-descriptions.c

Simon Marchi
2017-10-31T01:42:23Z

This patch series replaces VECs with std::vector and char* with std::string in
the tdesc classes. The objective is to remove the usage of VECs and the manual
memory management. The whole series was tested on the buildbot. At each step,
I tried to re-generate the C target descriptions. Only one patch causes a
visible change, which is harmless I think.

Simon Marchi (10):
Make target_desc::properties an std::vector
Make target_desc::compatible an std::vector
Make target_desc::features an std::vector
Make tdesc_feature::name an std::string
Make tdesc_feature::registers an std::vector
Make tdesc_reg string fields std::string
Make tdesc_feature::types an std::vector
Make tdesc_type::name an std::string
Make tdesc_type::u::u::fields an std::vector
Make tdesc_arch_data::arch_regs an std::vector

gdb/features/arc-arcompact.c | 2 +-
gdb/features/arc-v2.c | 4 +-
gdb/target-descriptions.c | 704 ++++++++++++++++---------------------------
3 files changed, 269 insertions(+), 441 deletions(-)

--
2.7.4