Fix -Wpointer-sign errors in solib-ia64-hpux.c
authorJoel Brobecker <brobecker@gnat.com>
Wed, 1 May 2013 14:33:00 +0000 (14:33 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Wed, 1 May 2013 14:33:00 +0000 (14:33 +0000)
gdb/ChangeLog:

        * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
        of &info->load_map from "char *" to "gdb_byte *".

gdb/ChangeLog
gdb/solib-ia64-hpux.c

index fc87f058d9b0cb78d55809210dd39af24d5d3d8f..b02799c6204cb9248d9fc52c079443dea351ea02 100644 (file)
@@ -1,3 +1,8 @@
+2013-05-01  Joel Brobecker  <brobecker@adacore.com>
+
+       * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
+       of &info->load_map from "char *" to "gdb_byte *".
+
 2013-05-01  Joel Brobecker  <brobecker@adacore.com>
 
        * ia64-tdep.c (ia64_access_fpreg): Change cast of val
index 67085d7db4fd6af39ae56380533594c3542aec3d..0a92904d311b267e2397373a8e4334ff3212dac7 100644 (file)
@@ -459,7 +459,8 @@ ia64_hpux_read_dynamic_info (struct gdbarch *gdbarch, bfd *abfd,
             {
               CORE_ADDR load_map_addr = bfd_h_get_64 (abfd, &dynp->d_un.d_ptr);
 
-              if (target_read_memory (load_map_addr, (char *) &info->load_map,
+              if (target_read_memory (load_map_addr,
+                                     (gdb_byte *) &info->load_map,
                                       sizeof (info->load_map)) != 0)
                error (_("failed to read load map at %s"),
                       paddress (gdbarch, load_map_addr));