Fix a compilation warning on mips-irix due to casting from
a pointer of different size.
+2009-04-16 Joel Brobecker <brobecker@adacore.com>
+
+ * procfs.c (solib_mappings_callback, find_memory_regions_callback):
+ Fix a compilation warning on mips-irix due to casting from
+ a pointer of different size.
+
2009-04-16 Joel Brobecker <brobecker@adacore.com>
* ada-lang.c (symtab_for_sym): Delete.
no file, so the ioctl may return failure, but that's
not a problem. */
#endif
- return (*func) (fd, (CORE_ADDR) map->pr_vaddr);
+ return (*func) (fd, (CORE_ADDR) (uintptr_t) map->pr_vaddr);
}
/*
void *),
void *data)
{
- return (*func) ((CORE_ADDR) map->pr_vaddr,
+ return (*func) ((CORE_ADDR) (uintptr_t) map->pr_vaddr,
map->pr_size,
(map->pr_mflags & MA_READ) != 0,
(map->pr_mflags & MA_WRITE) != 0,