diff options
Diffstat (limited to 'gdb/solib-target.c')
-rw-r--r-- | gdb/solib-target.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/gdb/solib-target.c b/gdb/solib-target.c index a41560e..ef9599c 100644 --- a/gdb/solib-target.c +++ b/gdb/solib-target.c @@ -80,9 +80,10 @@ library_list_start_segment (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s) *attributes) { - VEC(lm_info_p) **list = user_data; + VEC(lm_info_p) **list = (VEC(lm_info_p) **) user_data; struct lm_info *last = VEC_last (lm_info_p, *list); - ULONGEST *address_p = xml_find_attribute (attributes, "address")->value; + ULONGEST *address_p + = (long unsigned int *) xml_find_attribute (attributes, "address")->value; CORE_ADDR address = (CORE_ADDR) *address_p; if (last->section_bases != NULL) @@ -97,9 +98,10 @@ library_list_start_section (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s) *attributes) { - VEC(lm_info_p) **list = user_data; + VEC(lm_info_p) **list = (VEC(lm_info_p) **) user_data; struct lm_info *last = VEC_last (lm_info_p, *list); - ULONGEST *address_p = xml_find_attribute (attributes, "address")->value; + ULONGEST *address_p + = (long unsigned int *) xml_find_attribute (attributes, "address")->value; CORE_ADDR address = (CORE_ADDR) *address_p; if (last->segment_bases != NULL) @@ -116,9 +118,10 @@ library_list_start_library (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, VEC(gdb_xml_value_s) *attributes) { - VEC(lm_info_p) **list = user_data; + VEC(lm_info_p) **list = (VEC(lm_info_p) **) user_data; struct lm_info *item = XCNEW (struct lm_info); - const char *name = xml_find_attribute (attributes, "name")->value; + const char *name + = (const char *) xml_find_attribute (attributes, "name")->value; item->name = xstrdup (name); VEC_safe_push (lm_info_p, *list, item); @@ -129,7 +132,7 @@ library_list_end_library (struct gdb_xml_parser *parser, const struct gdb_xml_element *element, void *user_data, const char *body_text) { - VEC(lm_info_p) **list = user_data; + VEC(lm_info_p) **list = (VEC(lm_info_p) **) user_data; struct lm_info *lm_info = VEC_last (lm_info_p, *list); if (lm_info->segment_bases == NULL @@ -151,7 +154,7 @@ library_list_start_list (struct gdb_xml_parser *parser, /* #FIXED attribute may be omitted, Expat returns NULL in such case. */ if (version != NULL) { - const char *string = version->value; + const char *string = (const char *) version->value; if (strcmp (string, "1.0") != 0) gdb_xml_error (parser, @@ -165,7 +168,7 @@ library_list_start_list (struct gdb_xml_parser *parser, static void solib_target_free_library_list (void *p) { - VEC(lm_info_p) **result = p; + VEC(lm_info_p) **result = (VEC(lm_info_p) **) p; struct lm_info *info; int ix; |