diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e5c7bdce82..01a0c56f59 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2014-01-08 Yao Qi + + * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change + type of 'id' to gdb_byte. Cast 'id' to 'const char *'. + (spu_xfer_partial): Cast 'buf' to 'const char *'. + 2014-01-08 Yao Qi * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass diff --git a/gdb/spu-linux-nat.c b/gdb/spu-linux-nat.c index cfd5fd96a9..4c62ec7457 100644 --- a/gdb/spu-linux-nat.c +++ b/gdb/spu-linux-nat.c @@ -359,7 +359,7 @@ spu_symbol_file_add_from_memory (int inferior_fd) ULONGEST addr; struct bfd *nbfd; - char id[128]; + gdb_byte id[128]; char annex[32]; int len; @@ -369,7 +369,7 @@ spu_symbol_file_add_from_memory (int inferior_fd) if (len <= 0 || len >= sizeof id) return; id[len] = 0; - addr = strtoulst (id, NULL, 16); + addr = strtoulst ((const char *) id, NULL, 16); if (!addr) return; @@ -596,7 +596,7 @@ spu_xfer_partial (struct target_ops *ops, if (spu_proc_xfer_spu (lslr_annex, buf, NULL, 0, sizeof buf) <= 0) return ret; - lslr = strtoulst (buf, NULL, 16); + lslr = strtoulst ((const char *) buf, NULL, 16); return spu_proc_xfer_spu (mem_annex, readbuf, writebuf, offset & lslr, len); }