Fix -Wpointer-sign warning in sol-thread.c
authorJoel Brobecker <brobecker@gnat.com>
Mon, 6 May 2013 12:55:52 +0000 (12:55 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Mon, 6 May 2013 12:55:52 +0000 (12:55 +0000)
gdb/ChangeLog:

        * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
        to target_write_memory and target_read_memory.

gdb/ChangeLog
gdb/sol-thread.c

index 7473b08e4eef5f24b5469c7893fb0fd5d1e321da..14cce7909a7395145fbc6e8e61e7b02b7a4e306f 100644 (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.
index 969bfafe48637277c01db25f21833c3018655922..f5ea3bebcfbb03a03b0043fbd556c0bbedb37370 100644 (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);