diff options
Diffstat (limited to 'gdbsupport/tdesc.cc')
-rw-r--r-- | gdbsupport/tdesc.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdbsupport/tdesc.cc b/gdbsupport/tdesc.cc index 2bc0247..c062a77 100644 --- a/gdbsupport/tdesc.cc +++ b/gdbsupport/tdesc.cc @@ -355,8 +355,10 @@ void print_xml_feature::visit (const tdesc_type_with_fields *t) string_appendf (tmp, " size=\"%d\"", t->size); string_appendf (tmp, ">"); add_line (tmp); + /* The 'start' of the field is reused as the enum value. The 'end' + of the field is always set to -1 for enum values. */ for (const tdesc_type_field &f : t->fields) - add_line (" <field name=\"%s\" start=\"%d\"/>", + add_line (" <evalue name=\"%s\" value=\"%d\"/>", f.name.c_str (), f.start); break; |