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/solib-target.c | |
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/solib-target.c')
-rw-r--r-- | gdb/solib-target.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/solib-target.c b/gdb/solib-target.c index a3f5982..b6032e0 100644 --- a/gdb/solib-target.c +++ b/gdb/solib-target.c @@ -86,7 +86,7 @@ library_list_start_segment (struct gdb_xml_parser *parser, { VEC(lm_info_p) **list = user_data; struct lm_info *last = VEC_last (lm_info_p, *list); - ULONGEST *address_p = VEC_index (gdb_xml_value_s, attributes, 0)->value; + ULONGEST *address_p = xml_find_attribute (attributes, "address")->value; CORE_ADDR address = (CORE_ADDR) *address_p; if (last->section_bases != NULL) @@ -103,7 +103,7 @@ library_list_start_section (struct gdb_xml_parser *parser, { VEC(lm_info_p) **list = user_data; struct lm_info *last = VEC_last (lm_info_p, *list); - ULONGEST *address_p = VEC_index (gdb_xml_value_s, attributes, 0)->value; + ULONGEST *address_p = xml_find_attribute (attributes, "address")->value; CORE_ADDR address = (CORE_ADDR) *address_p; if (last->segment_bases != NULL) @@ -122,7 +122,7 @@ library_list_start_library (struct gdb_xml_parser *parser, { VEC(lm_info_p) **list = user_data; struct lm_info *item = XZALLOC (struct lm_info); - const char *name = VEC_index (gdb_xml_value_s, attributes, 0)->value; + const char *name = xml_find_attribute (attributes, "name")->value; item->name = xstrdup (name); VEC_safe_push (lm_info_p, *list, item); @@ -150,7 +150,7 @@ library_list_start_list (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s) *attributes) { - char *version = VEC_index (gdb_xml_value_s, attributes, 0)->value; + char *version = xml_find_attribute (attributes, "version")->value; if (strcmp (version, "1.0") != 0) gdb_xml_error (parser, |