diff options
Diffstat (limited to 'gdb/btrace.c')
-rw-r--r-- | gdb/btrace.c | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/gdb/btrace.c b/gdb/btrace.c index 4292dc7..da0b517 100644 --- a/gdb/btrace.c +++ b/gdb/btrace.c @@ -1384,7 +1384,8 @@ check_xml_btrace_version (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC (gdb_xml_value_s) *attributes) { - const char *version = xml_find_attribute (attributes, "version")->value; + const char *version + = (const char *) xml_find_attribute (attributes, "version")->value; if (strcmp (version, "1.0") != 0) gdb_xml_error (parser, _("Unsupported btrace version: \"%s\""), version); @@ -1401,7 +1402,7 @@ parse_xml_btrace_block (struct gdb_xml_parser *parser, struct btrace_block *block; ULONGEST *begin, *end; - btrace = user_data; + btrace = (struct btrace_data *) user_data; switch (btrace->format) { @@ -1417,8 +1418,8 @@ parse_xml_btrace_block (struct gdb_xml_parser *parser, gdb_xml_error (parser, _("Btrace format error.")); } - begin = xml_find_attribute (attributes, "begin")->value; - end = xml_find_attribute (attributes, "end")->value; + begin = (long unsigned int *) xml_find_attribute (attributes, "begin")->value; + end = (long unsigned int *) xml_find_attribute (attributes, "end")->value; block = VEC_safe_push (btrace_block_s, btrace->variant.bts.blocks, NULL); block->begin = *begin; @@ -1477,12 +1478,12 @@ parse_xml_btrace_pt_config_cpu (struct gdb_xml_parser *parser, const char *vendor; ULONGEST *family, *model, *stepping; - vendor = xml_find_attribute (attributes, "vendor")->value; - family = xml_find_attribute (attributes, "family")->value; - model = xml_find_attribute (attributes, "model")->value; - stepping = xml_find_attribute (attributes, "stepping")->value; + vendor = (const char *) xml_find_attribute (attributes, "vendor")->value; + family = (ULONGEST *) xml_find_attribute (attributes, "family")->value; + model = (ULONGEST *) xml_find_attribute (attributes, "model")->value; + stepping = (ULONGEST *) xml_find_attribute (attributes, "stepping")->value; - btrace = user_data; + btrace = (struct btrace_data *) user_data; if (strcmp (vendor, "GenuineIntel") == 0) btrace->variant.pt.config.cpu.vendor = CV_INTEL; @@ -1501,7 +1502,7 @@ parse_xml_btrace_pt_raw (struct gdb_xml_parser *parser, { struct btrace_data *btrace; - btrace = user_data; + btrace = (struct btrace_data *) user_data; parse_xml_raw (parser, body_text, &btrace->variant.pt.data, &btrace->variant.pt.size); } @@ -1515,7 +1516,7 @@ parse_xml_btrace_pt (struct gdb_xml_parser *parser, { struct btrace_data *btrace; - btrace = user_data; + btrace = (struct btrace_data *) user_data; btrace->format = BTRACE_FORMAT_PT; btrace->variant.pt.config.cpu.vendor = CV_UNKNOWN; btrace->variant.pt.data = NULL; @@ -1610,7 +1611,7 @@ parse_xml_btrace_conf_bts (struct gdb_xml_parser *parser, struct btrace_config *conf; struct gdb_xml_value *size; - conf = user_data; + conf = (struct btrace_config *) user_data; conf->format = BTRACE_FORMAT_BTS; conf->bts.size = 0; @@ -1629,7 +1630,7 @@ parse_xml_btrace_conf_pt (struct gdb_xml_parser *parser, struct btrace_config *conf; struct gdb_xml_value *size; - conf = user_data; + conf = (struct btrace_config *) user_data; conf->format = BTRACE_FORMAT_PT; conf->pt.size = 0; @@ -2250,7 +2251,7 @@ btrace_is_empty (struct thread_info *tp) static void do_btrace_data_cleanup (void *arg) { - btrace_data_fini (arg); + btrace_data_fini ((struct btrace_data *) arg); } /* See btrace.h. */ |