diff options
Diffstat (limited to 'gdb/osdata.c')
-rw-r--r-- | gdb/osdata.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/gdb/osdata.c b/gdb/osdata.c index f390940..5c41cb1 100644 --- a/gdb/osdata.c +++ b/gdb/osdata.c @@ -56,14 +56,15 @@ struct osdata_parsing_data static void osdata_start_osdata (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, - void *user_data, VEC(gdb_xml_value_s) *attributes) + void *user_data, + std::vector<gdb_xml_value> &attributes) { struct osdata_parsing_data *data = (struct osdata_parsing_data *) user_data; if (data->osdata != NULL) gdb_xml_error (parser, _("Seen more than on osdata element")); - char *type = (char *) xml_find_attribute (attributes, "type")->value; + char *type = (char *) xml_find_attribute (attributes, "type")->value.get (); data->osdata.reset (new struct osdata (std::string (type))); } @@ -72,7 +73,8 @@ osdata_start_osdata (struct gdb_xml_parser *parser, static void osdata_start_item (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, - void *user_data, VEC(gdb_xml_value_s) *attributes) + void *user_data, + std::vector<gdb_xml_value> &attributes) { struct osdata_parsing_data *data = (struct osdata_parsing_data *) user_data; data->osdata->items.emplace_back (); @@ -83,11 +85,12 @@ osdata_start_item (struct gdb_xml_parser *parser, static void osdata_start_column (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, - void *user_data, VEC(gdb_xml_value_s) *attributes) + void *user_data, + std::vector<gdb_xml_value> &attributes) { struct osdata_parsing_data *data = (struct osdata_parsing_data *) user_data; const char *name - = (const char *) xml_find_attribute (attributes, "name")->value; + = (const char *) xml_find_attribute (attributes, "name")->value.get (); data->property_name.assign (name); } |