Home | History | Annotate | Download | only in gdb

Lines Matching defs:attribute

225 /* Find the attribute named NAME in the set of parsed attributes
250 const struct gdb_xml_attribute *attribute;
302 for (attribute = element->attributes;
303 attribute != NULL && attribute->name != NULL;
304 attribute++)
311 if (!strcmp (attribute->name, p[0]))
319 gdb_xml_debug (this, _("Attribute \"%s\" missing a value"),
320 attribute->name);
324 if (*p == NULL && !(attribute->flags & GDB_XML_AF_OPTIONAL))
326 gdb_xml_error (this, _("Required attribute \"%s\" of "
328 attribute->name, element->name);
335 gdb_xml_debug (this, _("Parsing attribute %s=\"%s\""),
336 attribute->name, val);
338 if (attribute->handler)
339 parsed_value = attribute->handler (this, attribute, val);
343 attributes.emplace_back (attribute->name, parsed_value);
353 for (attribute = element->attributes;
354 attribute != NULL && attribute->name != NULL;
355 attribute++)
356 if (strcmp (attribute->name, *p) == 0)
359 if (attribute == NULL || attribute->name == NULL)
360 gdb_xml_debug (this, _("Ignoring unknown attribute %s"), *p);
664 /* Parse an integer attribute into a ULONGEST. */
668 const struct gdb_xml_attribute *attribute,
676 attribute->name, value);
698 const struct gdb_xml_attribute *attribute,
702 = (const struct gdb_xml_enum *) attribute->handler_data;
705 for (enums = (const struct gdb_xml_enum *) attribute->handler_data;
711 gdb_xml_error (parser, _("Unknown attribute value %s=\"%s\""),
712 attribute->name, value);