This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit 2/2] Fix -Wpointer-sign errors in solib-ia64-hpux.c
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 1 May 2013 18:34:46 +0400
- Subject: [commit 2/2] Fix -Wpointer-sign errors in solib-ia64-hpux.c
- References: <1367418886-9841-1-git-send-email-brobecker at adacore dot com>
gdb/ChangeLog:
* solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
of &info->load_map from "char *" to "gdb_byte *".
---
gdb/solib-ia64-hpux.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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));
--
1.7.10.4