aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2013-05-01 14:33:00 +0000
committerJoel Brobecker <brobecker@gnat.com>2013-05-01 14:33:00 +0000
commit4ca18a63a83bd8e451aab7c33236c4b2f33b9f59 (patch)
treebb099a836c8ab478637a26e2bd52eb13d6d23ea5
parent2b692d328bd1332fa4a57620d4889c1fe024278c (diff)
downloadgdb-4ca18a63a83bd8e451aab7c33236c4b2f33b9f59.zip
gdb-4ca18a63a83bd8e451aab7c33236c4b2f33b9f59.tar.gz
gdb-4ca18a63a83bd8e451aab7c33236c4b2f33b9f59.tar.bz2
Fix -Wpointer-sign errors in solib-ia64-hpux.c
gdb/ChangeLog: * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast of &info->load_map from "char *" to "gdb_byte *".
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/solib-ia64-hpux.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index fc87f05..b02799c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
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
from "char *" to "gdb_byte *".
(ia64_access_rse_fpreg, ia64_access_mem): Likewise.
diff --git a/gdb/solib-ia64-hpux.c b/gdb/solib-ia64-hpux.c
index 67085d7..0a92904 100644
--- a/gdb/solib-ia64-hpux.c
+++ b/gdb/solib-ia64-hpux.c
@@ -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));