This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 00/10] Use std::vector and std::string throughout target-descriptions.c
- From: Simon Marchi <simon dot marchi at ericsson dot com>
- To: <gdb-patches at sourceware dot org>
- Cc: Simon Marchi <simon dot marchi at ericsson dot com>
- Date: Mon, 30 Oct 2017 21:41:50 -0400
- Subject: [PATCH 00/10] Use std::vector and std::string throughout target-descriptions.c
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=simon dot marchi at ericsson dot com;
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
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