From: Joel Brobecker Date: Wed, 1 May 2013 14:31:55 +0000 (+0000) Subject: Fix -Wpointer-sign errors in ia64-tdep.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2b692d328bd1332fa4a57620d4889c1fe024278c;p=binutils-gdb.git Fix -Wpointer-sign errors in ia64-tdep.c gdb/ChangeLog: * 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/ChangeLog b/gdb/ChangeLog index 86e86606e26..fc87f058d9b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2013-05-01 Joel Brobecker + + * ia64-tdep.c (ia64_access_fpreg): Change cast of val + from "char *" to "gdb_byte *". + (ia64_access_rse_fpreg, ia64_access_mem): Likewise. + 2013-04-30 Doug Evans * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found. diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c index 7d440e4f0ad..44000b99255 100644 --- a/gdb/ia64-tdep.c +++ b/gdb/ia64-tdep.c @@ -2558,7 +2558,7 @@ ia64_access_fpreg (unw_addr_space_t as, unw_regnum_t uw_regnum, /* We never call any libunwind routines that need to write registers. */ gdb_assert (!write); - get_frame_register (this_frame, regnum, (char *) val); + get_frame_register (this_frame, regnum, (gdb_byte *) val); return 0; } @@ -2639,7 +2639,7 @@ ia64_access_rse_fpreg (unw_addr_space_t as, unw_regnum_t uw_regnum, /* We never call any libunwind routines that need to write registers. */ gdb_assert (!write); - regcache_cooked_read (regcache, regnum, (char *) val); + regcache_cooked_read (regcache, regnum, (gdb_byte *) val); return 0; } @@ -2664,9 +2664,9 @@ ia64_access_mem (unw_addr_space_t as, /* XXX do we need to normalize byte-order here? */ if (write) - return target_write_memory (addr, (char *) val, sizeof (unw_word_t)); + return target_write_memory (addr, (gdb_byte *) val, sizeof (unw_word_t)); else - return target_read_memory (addr, (char *) val, sizeof (unw_word_t)); + return target_read_memory (addr, (gdb_byte *) val, sizeof (unw_word_t)); } /* Call low-level function to access the kernel unwind table. */