aboutsummaryrefslogtreecommitdiff
path: root/gdb/procfs.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2009-04-16 17:25:38 +0000
committerJoel Brobecker <brobecker@gnat.com>2009-04-16 17:25:38 +0000
commit37da21bceb17dfd7b123d4bf9d6d5d0f4da25589 (patch)
treee09618080001df5d9c44dd18c211f3f47bfc491a /gdb/procfs.c
parent6f38eac82e6519916e5e71193fcdaef65d19fc43 (diff)
downloadbinutils-37da21bceb17dfd7b123d4bf9d6d5d0f4da25589.zip
binutils-37da21bceb17dfd7b123d4bf9d6d5d0f4da25589.tar.gz
binutils-37da21bceb17dfd7b123d4bf9d6d5d0f4da25589.tar.bz2
* 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.
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r--gdb/procfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c
index adb44f4..36d0e47 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,