* gdb/procfs.c (info_mappings_callback): Cast map->pr_size to
authorKazu Hirata <kazu@codesourcery.com>
Wed, 21 Jan 2009 01:20:15 +0000 (01:20 +0000)
committerKazu Hirata <kazu@codesourcery.com>
Wed, 21 Jan 2009 01:20:15 +0000 (01:20 +0000)
unsigned long.

gdb/ChangeLog
gdb/procfs.c

index 4bd55f261913fd6b523946297b09aa0d95581c99..4bd668109efbbfa24e62407ec9fbe2bb1c4576da 100644 (file)
@@ -1,3 +1,8 @@
+2009-01-20  Kazu Hirata  <kazu@codesourcery.com>
+
+       * gdb/procfs.c (info_mappings_callback): Cast map->pr_size to
+       unsigned long.
+
 2009-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
 
        PR gdb/9346
index ea8648e61a798d53e415a1bbe06ff9d1c70043fd..4587fdd37b25fdad05be7c87249ff8fc64220477 100644 (file)
@@ -5791,17 +5791,17 @@ info_mappings_callback (struct prmap *map, int (*ignore) (), void *unused)
 #endif
 
   if (gdbarch_addr_bit (current_gdbarch) == 32)
-    printf_filtered ("\t%#10lx %#10lx %#10x %#10x %7s\n",
+    printf_filtered ("\t%#10lx %#10lx %#10lx %#10x %7s\n",
                     (unsigned long) map->pr_vaddr,
                     (unsigned long) map->pr_vaddr + map->pr_size - 1,
-                    map->pr_size,
+                    (unsigned long) map->pr_size,
                     pr_off,
                     mappingflags (map->pr_mflags));
   else
-    printf_filtered ("  %#18lx %#18lx %#10x %#10x %7s\n",
+    printf_filtered ("  %#18lx %#18lx %#10lx %#10x %7s\n",
                     (unsigned long) map->pr_vaddr,
                     (unsigned long) map->pr_vaddr + map->pr_size - 1,
-                    map->pr_size,
+                    (unsigned long) map->pr_size,
                     pr_off,
                     mappingflags (map->pr_mflags));