solib-spu: Add gdb_byte* cast
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 22 Oct 2015 13:46:31 +0000 (09:46 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Thu, 22 Oct 2015 13:47:46 +0000 (09:47 -0400)
commit5af9928d44e302b7f68365a0c551f640895366ff
tree13d8a0edaa377e128474e161dd6ff829be005346
parent3e45d68b7088df39d0520d1a92005cfdf4e2b922
solib-spu: Add gdb_byte* cast

Fixes this error:

/home/simark/src/binutils-gdb/gdb/solib-spu.c: In function â€˜file_ptr spu_bfd_iovec_pread(bfd*, void*, void*, file_ptr, file_ptr)’:
/home/simark/src/binutils-gdb/gdb/solib-spu.c:299:55: error: invalid conversion from â€˜void*’ to â€˜gdb_byte* {aka unsigned char*}’ [-fpermissive]
   ret = target_read_memory (addr + offset, buf, nbytes);
                                                       ^
In file included from /home/simark/src/binutils-gdb/gdb/target.h:65:0,
                 from /home/simark/src/binutils-gdb/gdb/exec.h:23,
                 from /home/simark/src/binutils-gdb/gdb/gdbcore.h:29,
                 from /home/simark/src/binutils-gdb/gdb/solib-spu.c:23:
/home/simark/src/binutils-gdb/gdb/target/target.h:35:12: note:   initializing argument 2 of â€˜int target_read_memory(CORE_ADDR, gdb_byte*, ssize_t)’
 extern int target_read_memory (CORE_ADDR memaddr, gdb_byte *myaddr,

gdb/ChangeLog:

* solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
gdb/ChangeLog
gdb/solib-spu.c