aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/tdesc.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2018-03-30 17:18:55 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2018-03-30 17:18:55 -0400
commit17d08cd4137063dbc43d9989b9a5cb315171174f (patch)
treeecbbf6b61c0efd740b3d1242266d311dc5db46d2 /gdb/gdbserver/tdesc.h
parenta18ba4e4c9d64eeb2ea65e5315fbd8b4261a1756 (diff)
downloadfsf-binutils-gdb-17d08cd4137063dbc43d9989b9a5cb315171174f.zip
fsf-binutils-gdb-17d08cd4137063dbc43d9989b9a5cb315171174f.tar.gz
fsf-binutils-gdb-17d08cd4137063dbc43d9989b9a5cb315171174f.tar.bz2
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.
Diffstat (limited to 'gdb/gdbserver/tdesc.h')
-rw-r--r--gdb/gdbserver/tdesc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbserver/tdesc.h b/gdb/gdbserver/tdesc.h
index a625443..85139d9 100644
--- a/gdb/gdbserver/tdesc.h
+++ b/gdb/gdbserver/tdesc.h
@@ -54,7 +54,7 @@ struct target_desc : tdesc_feature
const char *xmltarget = NULL;
/* XML features in this target description. */
- VEC (char_ptr) *features = NULL;
+ std::vector<std::string> features;
/* The value of <architecture> element in the XML, replying GDB. */
const char *arch = NULL;