Make target_desc::properties an std::vector
authorSimon Marchi <simon.marchi@polymtl.ca>
Tue, 5 Dec 2017 21:30:22 +0000 (16:30 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Tue, 5 Dec 2017 21:30:22 +0000 (16:30 -0500)
commit129c10bcb9b3bc2ed9682040aa9a0d144bb5e959
treeba3e1f92095b1561639aac91c44cc3a83df554be
parented9376bd95c52ba00aa37b224b4407030a00d184
Make target_desc::properties an std::vector

This patch changes target_desc::properties to be a vector of property
objects.  This way, we don't need to manually free the property members
as well as the property objects themselves.

gdb/ChangeLog:

* target-descriptions.c (property_s): Remove typedef.
(DEF_VEC_O (property_s)): Remove.
(struct target_desc) <properties>: Make an std::vector.
<~target_desc>: Don't manually free properties.
(tdesc_property): Adjust.
(set_tdesc_property): Adjust.
(class print_c_tdesc) <visit_pre>: Adjust.
gdb/ChangeLog
gdb/target-descriptions.c