This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]