Make tdesc_feature::name an std::string
authorSimon Marchi <simon.marchi@polymtl.ca>
Tue, 5 Dec 2017 21:30:24 +0000 (16:30 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Tue, 5 Dec 2017 21:30:24 +0000 (16:30 -0500)
commitf65ff9f9a4add415e5ae332a094b2134c1625517
tree79a62aa6683804272c88cec43b87cef4e4f439b6
parent3eea796c5daeb7b60531fc3d707470fa91a86e11
Make tdesc_feature::name an std::string

... so we don't have to manually free it in ~tdesc_feature.

gdb/ChangeLog:

* target-descriptions.c (tdesc_feature) <name>: Change type to
std::string.
<~tdesc_feature>: Don't manually free name.
<operator==>: Adjust.
(tdesc_find_feature): Adjust.
(tdesc_feature_name): Adjust.
(class print_c_tdesc) <visit_pre>: Adjust.
(class print_c_feature) <visit_pre>: Adjust.
gdb/ChangeLog
gdb/target-descriptions.c