Fix -Wpointer-sign warning in sol-thread.c

gdb/ChangeLog:

        * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
        to target_write_memory and target_read_memory.
This commit is contained in:
Joel Brobecker
2013-05-06 12:55:52 +00:00
parent 726ce67c26
commit 0c4f667cfe
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2013-05-06 Joel Brobecker <brobecker@adacore.com>
* sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
to target_write_memory and target_read_memory.
2013-05-06 Joel Brobecker <brobecker@adacore.com>
* darwin-nat.c (darwin_setup_fake_stop_event): New function.

View File

@ -807,9 +807,9 @@ rw_common (int dowrite, const struct ps_prochandle *ph, gdb_ps_addr_t addr,
#endif
if (dowrite)
ret = target_write_memory (addr, buf, size);
ret = target_write_memory (addr, (gdb_byte *) buf, size);
else
ret = target_read_memory (addr, buf, size);
ret = target_read_memory (addr, (gdb_byte *) buf, size);
do_cleanups (old_chain);