summaryrefslogtreecommitdiff
path: root/gdb/solib-svr4.c
diff options
context:
space:
mode:
authorSimon Marchi <simark@nova.polymtl.ca>2015-09-26 17:15:05 -0400
committerSimon Marchi <simark@nova.polymtl.ca>2015-09-26 17:15:44 -0400
commitbc84451b7af508ddd154a8793eaf0de68b7ca80a (patch)
tree151275e5222ad2a00d0b8229a436c0fb2804c22d /gdb/solib-svr4.c
parentba587d55a56db16e9e47d1e0975f5125fbafc6db (diff)
downloadbinutils-gdb-bc84451b7af508ddd154a8793eaf0de68b7ca80a.tar.gz
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-svr4.c')
-rw-r--r--gdb/solib-svr4.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
index 48dec25f476..55b8f556677 100644
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -1166,11 +1166,11 @@ library_list_start_library (struct gdb_xml_parser *parser,
const char *name
= (const char *) xml_find_attribute (attributes, "name")->value;
ULONGEST *lmp
- = (long unsigned int *) xml_find_attribute (attributes, "lm")->value;
+ = (ULONGEST *) xml_find_attribute (attributes, "lm")->value;
ULONGEST *l_addrp
- = (long unsigned int *) xml_find_attribute (attributes, "l_addr")->value;
+ = (ULONGEST *) xml_find_attribute (attributes, "l_addr")->value;
ULONGEST *l_ldp
- = (long unsigned int *) xml_find_attribute (attributes, "l_ld")->value;
+ = (ULONGEST *) xml_find_attribute (attributes, "l_ld")->value;
struct so_list *new_elem;
new_elem = XCNEW (struct so_list);