diff options
author | Pedro Alves <palves@redhat.com> | 2011-02-02 16:12:59 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-02-02 16:12:59 +0000 |
commit | 3d2c1d41d4b6cdaa6052ddfd99b0745cc70c9cbb (patch) | |
tree | addbf54d22e8398af15ff23704ed86fd84b94bd8 /gdb/xml-support.h | |
parent | 0af3e2db57c384891ab4f6905ea619930d953ae6 (diff) | |
download | gdb-3d2c1d41d4b6cdaa6052ddfd99b0745cc70c9cbb.zip gdb-3d2c1d41d4b6cdaa6052ddfd99b0745cc70c9cbb.tar.gz gdb-3d2c1d41d4b6cdaa6052ddfd99b0745cc70c9cbb.tar.bz2 |
* xml-support.c (xml_find_attribute): New.
(xinclude_start_include): Use it.
* xml-support.h (xml_find_attribute): Declare.
* memory-map.c (memory_map_start_memory)
(memory_map_start_property): Use xml_find_attribute.
* osdata.c (osdata_start_osdata, osdata_start_column): Use
xml_find_attribute.
* remote.c (start_thread): Use xml_find_attribute.
* solib-target.c (library_list_start_segment)
(library_list_start_section, library_list_start_library)
(library_list_start_list): Use xml_find_attribute.
* xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
(tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
(tdesc_start_field): Use xml_find_attribute.
Diffstat (limited to 'gdb/xml-support.h')
-rw-r--r-- | gdb/xml-support.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/xml-support.h b/gdb/xml-support.h index 0cfc62c..4d5df5c 100644 --- a/gdb/xml-support.h +++ b/gdb/xml-support.h @@ -220,6 +220,12 @@ void gdb_xml_debug (struct gdb_xml_parser *parser, const char *format, ...) void gdb_xml_error (struct gdb_xml_parser *parser, const char *format, ...) ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (2, 0); +/* Find the attribute named NAME in the set of parsed attributes + ATTRIBUTES. Returns NULL if not found. */ + +struct gdb_xml_value *xml_find_attribute (VEC(gdb_xml_value_s) *attributes, + const char *name); + /* Parse an integer attribute into a ULONGEST. */ extern gdb_xml_attribute_handler gdb_xml_parse_attr_ulongest; |