From: Joel Brobecker Date: Thu, 16 Apr 2009 17:25:38 +0000 (+0000) Subject: * procfs.c (solib_mappings_callback, find_memory_regions_callback): X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=37da21bceb17dfd7b123d4bf9d6d5d0f4da25589;p=binutils-gdb.git * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3e20aa84e60..40444c05381 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2009-04-16 Joel Brobecker + + * 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 * ada-lang.c (symtab_for_sym): Delete. diff --git a/gdb/procfs.c b/gdb/procfs.c index adb44f4e060..36d0e476a6b 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -5473,7 +5473,7 @@ int solib_mappings_callback (struct prmap *map, 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); } /* @@ -5524,7 +5524,7 @@ find_memory_regions_callback (struct prmap *map, 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,