Use std::vector and std::string instead of VEC(char_ptr) in gdbserver tdesc
authorSimon Marchi <simon.marchi@polymtl.ca>
Fri, 30 Mar 2018 21:18:55 +0000 (17:18 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Fri, 30 Mar 2018 21:18:55 +0000 (17:18 -0400)
commit17d08cd4137063dbc43d9989b9a5cb315171174f
treeecbbf6b61c0efd740b3d1242266d311dc5db46d2
parenta18ba4e4c9d64eeb2ea65e5315fbd8b4261a1756
Use std::vector and std::string instead of VEC(char_ptr) in gdbserver tdesc

This is a straightforward replacement, no change in behavior are
intended/expected.

gdb/gdbserver/ChangeLog:

* tdesc.h (struct target_desc) <features>: Change type to
std::vector<std::string>.
* tdesc.c (target_desc::~target_desc): Adjust to std::vector
changes.
(tdesc_get_features_xml): Likewise.
(tdesc_create_feature): Likewise.
gdb/gdbserver/ChangeLog
gdb/gdbserver/tdesc.c
gdb/gdbserver/tdesc.h