diff options
author | Alan Hayward <alan.hayward@arm.com> | 2018-04-18 11:39:53 +0100 |
---|---|---|
committer | Alan Hayward <alan.hayward@arm.com> | 2018-04-18 14:00:34 +0100 |
commit | 82ec9bc7055ca76f1f7dd344f3f58bf6aecec7c8 (patch) | |
tree | e9dfea1cdae7262eb147050fe6480d8c39f27c7e /gdb/regformats | |
parent | ea3e7d717982e3c467edc7886b1d6cc2807195af (diff) | |
download | binutils-82ec9bc7055ca76f1f7dd344f3f58bf6aecec7c8.zip binutils-82ec9bc7055ca76f1f7dd344f3f58bf6aecec7c8.tar.gz binutils-82ec9bc7055ca76f1f7dd344f3f58bf6aecec7c8.tar.bz2 |
Commonise tdesc_feature and makes use of it in gdbserver tdesc
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/regformats')
-rwxr-xr-x | gdb/regformats/regdat.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/regformats/regdat.sh b/gdb/regformats/regdat.sh index ce16271..8c6e191 100755 --- a/gdb/regformats/regdat.sh +++ b/gdb/regformats/regdat.sh @@ -131,7 +131,7 @@ do echo "{" echo " static struct target_desc tdesc_${name}_s;" echo " struct target_desc *result = &tdesc_${name}_s;" - + echo " struct tdesc_feature *feature = tdesc_create_feature (result, \"${name}\");" continue elif test "${type}" = "xmltarget"; then xmltarget="${entry}" @@ -149,7 +149,7 @@ do echo "$0: $1 does not specify \`\`name''." 1>&2 exit 1 else - echo " tdesc_create_reg ((struct tdesc_feature *) result, \"${entry}\"," + echo " tdesc_create_reg (feature, \"${entry}\"," echo " 0, 0, NULL, ${type}, NULL);" offset=`expr ${offset} + ${type}` |