From: Simon Marchi Date: Tue, 5 Dec 2017 21:39:35 +0000 (-0500) Subject: Address review comments for the previous series X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=858c9d13240e695bc3b750368f5d4e524b12112e;p=deliverable%2Fbinutils-gdb.git Address review comments for the previous series I failed at git and missed adding/lost changes on the wrong branch, the result being that I didn't incorporate fixes resulting from Yao's review comments. This patch fixes that. There are two places where we should use the unique pointer typedef, and ChangeLog entries missing. gdb/ChangeLog: * target-descriptions.c (struct tdesc_feature) : Use tdesc_reg_up typedef. (struct target_desc) : Use tdesc_feature_up typedef. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1d3a3e8104..657f87b3b7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2017-12-05 Simon Marchi + + * target-descriptions.c (struct tdesc_feature) : Use + tdesc_reg_up typedef. + (struct target_desc) : Use tdesc_feature_up typedef. + 2017-12-05 Simon Marchi * target-descriptions.c (struct tdesc_type): Use default @@ -118,6 +124,8 @@ (tdesc_register_in_reggroup_p): Adjust. (class print_c_tdesc) : Adjust. (class print_c_feature) : Adjust. + * features/arc-arcompact.c: Re-generate. + * features/arc-v2.c: Re-generate. 2017-12-05 Simon Marchi diff --git a/gdb/target-descriptions.c b/gdb/target-descriptions.c index 12d72fa128..5a6f61945d 100644 --- a/gdb/target-descriptions.c +++ b/gdb/target-descriptions.c @@ -529,7 +529,7 @@ struct tdesc_feature : tdesc_element std::string name; /* The registers associated with this feature. */ - std::vector> registers; + std::vector registers; /* The types associated with this feature. */ std::vector types; @@ -613,7 +613,7 @@ struct target_desc : tdesc_element std::vector properties; /* The features associated with this target. */ - std::vector> features; + std::vector features; void accept (tdesc_element_visitor &v) const override {