mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
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.
This commit is contained in:
@@ -1418,8 +1418,8 @@ parse_xml_btrace_block (struct gdb_xml_parser *parser,
|
||||
gdb_xml_error (parser, _("Btrace format error."));
|
||||
}
|
||||
|
||||
begin = (long unsigned int *) xml_find_attribute (attributes, "begin")->value;
|
||||
end = (long unsigned int *) xml_find_attribute (attributes, "end")->value;
|
||||
begin = (ULONGEST *) xml_find_attribute (attributes, "begin")->value;
|
||||
end = (ULONGEST *) xml_find_attribute (attributes, "end")->value;
|
||||
|
||||
block = VEC_safe_push (btrace_block_s, btrace->variant.bts.blocks, NULL);
|
||||
block->begin = *begin;
|
||||
|
||||
Reference in New Issue
Block a user