diff options
author | Alan Hayward <alan.hayward@arm.com> | 2018-03-01 11:00:53 +0000 |
---|---|---|
committer | Alan Hayward <alan.hayward@arm.com> | 2018-03-01 11:00:53 +0000 |
commit | 5f7b143a826864bd5c5041011e1cd404e24588e6 (patch) | |
tree | 2a813db38b7af91f21db34e5ec50ec1a92164cde /gdb/ada-lang.c | |
parent | 56ad1938366fedc1ae835570e0f6d4e737f565cb (diff) | |
download | gdb-5f7b143a826864bd5c5041011e1cd404e24588e6.zip gdb-5f7b143a826864bd5c5041011e1cd404e24588e6.tar.gz gdb-5f7b143a826864bd5c5041011e1cd404e24588e6.tar.bz2 |
[PATCH v3 3/8] Commonise tdesc_feature
This patch commonises tdesc_feature and makes use of it in gdbserver tdesc.
Previously in gdbserver, target_desc was interchangeable with tdesc_feature.
Now gdbserver target_desc contains a vector of tdesc_feature.
I am now able to commonise tdesc_create_reg (wanted to do this in the
previous patch).
I also had to commonise tdesc_type. This is ok, because I will need them
in the next patch.
Alan.
2018-03-01 Alan Hayward <alan.hayward@arm.com>
gdb/
* common/tdesc.c (tdesc_feature::accept): Move to here.
(tdesc_feature::operator==): Likewise.
(tdesc_create_reg): Likewise.
* common/tdesc.h (tdesc_type_kind): Likewise.
(struct tdesc_type): Likewise.
(struct tdesc_feature): Likewise.
* regformats/regdat.sh: Create a feature.
* target-descriptions.c (tdesc_type_kind): Move from here.
(tdesc_type): Likewise.
(tdesc_type_up): Likewise.
(tdesc_feature): Likewise.
(tdesc_create_reg): Likewise.
gdbserver/
* tdesc.c (~target_desc): Remove implictly deleted items.
(init_target_desc): Iterate all features.
(tdesc_get_features_xml): Use vector.
(tdesc_create_feature): Create feature.
* tdesc.h (tdesc_feature) Remove
(target_desc): Add features.
Diffstat (limited to 'gdb/ada-lang.c')
0 files changed, 0 insertions, 0 deletions