aboutsummaryrefslogtreecommitdiff
path: root/gdb/sol-thread.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2013-05-06 12:55:52 +0000
committerJoel Brobecker <brobecker@gnat.com>2013-05-06 12:55:52 +0000
commit0c4f667cfe5118bf3a2690502a9a40ff3309abed (patch)
tree49e46eba345857025c2da8263ac88ebe565e4fbb /gdb/sol-thread.c
parent726ce67c26bb6e9525d6d74dae6ff0a166289367 (diff)
downloadfsf-binutils-gdb-0c4f667cfe5118bf3a2690502a9a40ff3309abed.zip
fsf-binutils-gdb-0c4f667cfe5118bf3a2690502a9a40ff3309abed.tar.gz
fsf-binutils-gdb-0c4f667cfe5118bf3a2690502a9a40ff3309abed.tar.bz2
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.
Diffstat (limited to 'gdb/sol-thread.c')
-rw-r--r--gdb/sol-thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c
index 969bfaf..f5ea3be 100644
--- a/gdb/sol-thread.c
+++ b/gdb/sol-thread.c
@@ -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);