Class-fy tdesc_reg tdesc_type and tdesc_feature
authorYao Qi <yao.qi@linaro.org>
Tue, 20 Jun 2017 10:29:17 +0000 (11:29 +0100)
committerYao Qi <yao.qi@linaro.org>
Tue, 20 Jun 2017 10:29:17 +0000 (11:29 +0100)
commit72ddacb77e3301a0481003a23b2d8dced7116de5
tree5c27e77f33c5dc4414b22158d7249661d5fed478
parent94de2a2c57b7f6b2870f72ecdcacc6d909c6421a
Class-fy tdesc_reg tdesc_type and tdesc_feature

This patch class-fies them, adding ctor, dtor, and deleting
copy ctor and assignment operator.

gdb:

2017-06-20  Yao Qi  <yao.qi@linaro.org>

* target-descriptions.c (tdesc_reg): Add ctor, dtor.
Delete copy ctor and assignment operator.
(tdesc_type): Likewise.
(tdesc_feature): Likewise.
(tdesc_free_reg): Remove.
(tdesc_create_reg): Use new.
(tdesc_free_type): Remove.
(tdesc_create_vector): Use new.
(tdesc_create_union): Likewise.
(tdesc_create_flags): Likewise.
(tdesc_create_enum): Likewise.
(tdesc_free_feature): Delete.
(free_target_description): Use delete.
gdb/ChangeLog
gdb/target-descriptions.c