xml-tdesc.c (tdesc_start_enum): Fix c++ build.
authorDoug Evans <dje@google.com>
Wed, 16 Mar 2016 17:30:41 +0000 (10:30 -0700)
committerDoug Evans <dje@google.com>
Wed, 16 Mar 2016 17:30:41 +0000 (10:30 -0700)
gdb/ChangeLog:

* xml-tdesc.c (tdesc_start_enum): Fix c++ build.

gdb/ChangeLog
gdb/xml-tdesc.c

index 83457dc2faa3ce5cc2bc913b8cd40f63593bc6a7..a9952cb765b21103ef0997c1a63f9e334384a84a 100644 (file)
@@ -1,3 +1,7 @@
+2016-03-16  Doug Evans  <dje@google.com>
+
+       * xml-tdesc.c (tdesc_start_enum): Fix c++ build.
+
 2016-03-16  Yao Qi  <yao.qi@linaro.org>
 
        * arm-linux-tdep.c (arm_linux_init_abi): Fix
index a0fd08acf863953e04ef1ac115d72452e1c41cbd..aa58385df9fe6d4bcd0b44edecedfe1214b4e3ed 100644 (file)
@@ -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;