diff options
author | Doug Evans <dje@google.com> | 2016-03-16 10:30:41 -0700 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2016-03-16 10:30:41 -0700 |
commit | bfeeb14b8468ab3f60d719f2cde697d1b537eba8 (patch) | |
tree | 28ecfdb2cc56c9d2ae2ea53e1a238751613562a9 /gdb/xml-tdesc.c | |
parent | cc9333013723880949a1e07a3e04bdbc1a3c3032 (diff) | |
download | gdb-bfeeb14b8468ab3f60d719f2cde697d1b537eba8.zip gdb-bfeeb14b8468ab3f60d719f2cde697d1b537eba8.tar.gz gdb-bfeeb14b8468ab3f60d719f2cde697d1b537eba8.tar.bz2 |
xml-tdesc.c (tdesc_start_enum): Fix c++ build.
gdb/ChangeLog:
* xml-tdesc.c (tdesc_start_enum): Fix c++ build.
Diffstat (limited to 'gdb/xml-tdesc.c')
-rw-r--r-- | gdb/xml-tdesc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/xml-tdesc.c b/gdb/xml-tdesc.c index a0fd08a..aa58385 100644 --- a/gdb/xml-tdesc.c +++ b/gdb/xml-tdesc.c @@ -300,8 +300,8 @@ tdesc_start_enum (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s) *attributes) { - struct tdesc_parsing_data *data = user_data; - char *id = xml_find_attribute (attributes, "id")->value; + struct tdesc_parsing_data *data = (struct tdesc_parsing_data *) user_data; + char *id = (char *) xml_find_attribute (attributes, "id")->value; int size = * (ULONGEST *) xml_find_attribute (attributes, "size")->value; struct tdesc_type *type; |