aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
authorAlan Hayward <alan.hayward@arm.com>2018-03-01 11:04:00 +0000
committerAlan Hayward <alan.hayward@arm.com>2018-03-01 11:04:00 +0000
commita42269668fc6c59f93922fd3ae0fff399468eb47 (patch)
tree5d6694c3bfae6810f8ace7f6d6869f7f1e8ef0ce /gdb/ada-lang.c
parenta2303a6ba747046fcb9f848a76ee66d7fce23417 (diff)
downloadgdb-a42269668fc6c59f93922fd3ae0fff399468eb47.zip
gdb-a42269668fc6c59f93922fd3ae0fff399468eb47.tar.gz
gdb-a42269668fc6c59f93922fd3ae0fff399468eb47.tar.bz2
[PATCH v3 6/8] Create xml from target descriptions
This patch adds a print_xml_feature visitor class which turns a C target description into xml. Both gdb and gdbserver can do this. An accept function is added to gdbserver tdesc to allow it to use vistor classes. Tests are added to maintenance_check_xml_descriptions which takes each pair of tested descriptions, turns them both into xml, then back again, and confirms the descriptions still match. Alan. 2018-02-26 Alan Hayward <alan.hayward@arm.com> gdb/ * common/tdesc.c (print_xml_feature::visit_post): Add xml parsing. (print_xml_feature::visit_pre): Likewise. (print_xml_feature::visit_post): Likewise. (print_xml_feature::visit): Likewise. (print_xml_feature::visit): Likewise. (print_xml_feature::visit): Likewise. (print_xml_feature::visit): Likewise. * common/tdesc.h (print_xml_feature): Add new class. * regformats/regdat.sh: obtain xml. * target-descriptions.c (struct target_desc): Add xmltarget. (print_xml_feature::visit_pre): Add xml vistor. (tdesc_get_features_xml): Add function to get xml. (maintenance_check_xml_descriptions): Test xml generation. * xml-tdesc.c (target_read_description_xml_string): Add function. * xml-tdesc.h (target_read_description_xml_string): Add declaration. gdbserver/ * tdesc.c (void target_desc::accept): Fill in function. (tdesc_get_features_xml): Remove old xml creation. (print_xml_feature::visit_pre): Add xml vistor.
Diffstat (limited to 'gdb/ada-lang.c')
0 files changed, 0 insertions, 0 deletions