diff options
author | Simon Marchi <simark@nova.polymtl.ca> | 2015-09-26 17:15:05 -0400 |
---|---|---|
committer | Simon Marchi <simark@nova.polymtl.ca> | 2015-09-26 17:15:44 -0400 |
commit | bc84451b7af508ddd154a8793eaf0de68b7ca80a (patch) | |
tree | 151275e5222ad2a00d0b8229a436c0fb2804c22d /gdb/solib-target.c | |
parent | [D] Fix regression in py-lookup-type.exp (diff) | |
download | binutils-gdb-bc84451b7af508ddd154a8793eaf0de68b7ca80a.tar.gz binutils-gdb-bc84451b7af508ddd154a8793eaf0de68b7ca80a.tar.bz2 binutils-gdb-bc84451b7af508ddd154a8793eaf0de68b7ca80a.zip |
Fix cast of xml_find_attribute's return value
The cast auto-insert script inserted long unsigned int, but we should
use the typedef ULONGEST. Fixes build failures on i386.
gdb/ChangeLog:
* btrace.c (parse_xml_btrace_block): Fix cast of
xml_find_attribute's return value.
* memory-map.c (memory_map_start_memory): Likewise.
* solib-svr4.c (library_list_start_library): Likewise.
* solib-target.c (library_list_start_segment): Likewise.
(library_list_start_section): Likewise.
* tracepoint.c (traceframe_info_start_memory): Likewise.
Diffstat (limited to 'gdb/solib-target.c')
-rw-r--r-- | gdb/solib-target.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/solib-target.c b/gdb/solib-target.c index ef9599c992b..7745a4a08cd 100644 --- a/gdb/solib-target.c +++ b/gdb/solib-target.c @@ -83,7 +83,7 @@ library_list_start_segment (struct gdb_xml_parser *parser, VEC(lm_info_p) **list = (VEC(lm_info_p) **) user_data; struct lm_info *last = VEC_last (lm_info_p, *list); ULONGEST *address_p - = (long unsigned int *) xml_find_attribute (attributes, "address")->value; + = (ULONGEST *) xml_find_attribute (attributes, "address")->value; CORE_ADDR address = (CORE_ADDR) *address_p; if (last->section_bases != NULL) @@ -101,7 +101,7 @@ library_list_start_section (struct gdb_xml_parser *parser, VEC(lm_info_p) **list = (VEC(lm_info_p) **) user_data; struct lm_info *last = VEC_last (lm_info_p, *list); ULONGEST *address_p - = (long unsigned int *) xml_find_attribute (attributes, "address")->value; + = (ULONGEST *) xml_find_attribute (attributes, "address")->value; CORE_ADDR address = (CORE_ADDR) *address_p; if (last->segment_bases != NULL) |