From bc84451b7af508ddd154a8793eaf0de68b7ca80a Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Sat, 26 Sep 2015 17:15:05 -0400 Subject: 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. --- gdb/memory-map.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/memory-map.c') diff --git a/gdb/memory-map.c b/gdb/memory-map.c index d56b14c..3de6e9d 100644 --- a/gdb/memory-map.c +++ b/gdb/memory-map.c @@ -61,11 +61,11 @@ memory_map_start_memory (struct gdb_xml_parser *parser, ULONGEST *start_p, *length_p, *type_p; start_p - = (long unsigned int *) xml_find_attribute (attributes, "start")->value; + = (ULONGEST *) xml_find_attribute (attributes, "start")->value; length_p - = (long unsigned int *) xml_find_attribute (attributes, "length")->value; + = (ULONGEST *) xml_find_attribute (attributes, "length")->value; type_p - = (long unsigned int *) xml_find_attribute (attributes, "type")->value; + = (ULONGEST *) xml_find_attribute (attributes, "type")->value; mem_region_init (r); r->lo = *start_p; -- cgit v1.1