diff options
author | Joel Brobecker <brobecker@gnat.com> | 2013-05-01 14:31:55 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2013-05-01 14:31:55 +0000 |
commit | 2b692d328bd1332fa4a57620d4889c1fe024278c (patch) | |
tree | aaeb093c06219a4db4fdc0f558b7249cbf76bbf5 /gdb/ia64-tdep.c | |
parent | a51639867be768ea711d8c3810a204efc0b0b4f5 (diff) | |
download | gdb-2b692d328bd1332fa4a57620d4889c1fe024278c.zip gdb-2b692d328bd1332fa4a57620d4889c1fe024278c.tar.gz gdb-2b692d328bd1332fa4a57620d4889c1fe024278c.tar.bz2 |
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.
Diffstat (limited to 'gdb/ia64-tdep.c')
-rw-r--r-- | gdb/ia64-tdep.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c index 7d440e4..44000b9 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. */ |