Use gdb_byte * instead of void *
authorYao Qi <yao@codesourcery.com>
Mon, 16 Dec 2013 06:39:12 +0000 (14:39 +0800)
committerYao Qi <yao@codesourcery.com>
Thu, 23 Jan 2014 03:50:29 +0000 (11:50 +0800)
This patch changes the argument type to gdb_byte * in order to align
with the to_xfer_partial interface.

gdb:

2014-01-23  Yao Qi  <yao@codesourcery.com>

* target.c (raw_memory_xfer_partial): Change argument type
from void * to gdb_byte *.
(memory_xfer_partial_1, memory_xfer_partial): Likewise.

gdb/ChangeLog
gdb/target.c

index 0198542920468ea683a45fb0839ce7a204bcbe64..970dffb433f75e31747c3fb4835b9f508fd7645b 100644 (file)
@@ -1,3 +1,9 @@
+2014-01-23  Yao Qi  <yao@codesourcery.com>
+
+       * target.c (raw_memory_xfer_partial): Change argument type
+       from void * to gdb_byte *.
+       (memory_xfer_partial_1, memory_xfer_partial): Likewise.
+
 2014-01-22  Doug Evans  <dje@google.com>
 
        New gdbserver option --debug-format=timestamp.
index 576d6c73a60cc46bd9ebc5e338dc1f465d093792..3d63ada5ad50d856c324c93a4283a675064fe50e 100644 (file)
@@ -1394,8 +1394,8 @@ memory_xfer_live_readonly_partial (struct target_ops *ops,
    the target below it.  So, we must manually try all targets.  */
 
 static LONGEST
-raw_memory_xfer_partial (struct target_ops *ops, void *readbuf,
-                        const void *writebuf, ULONGEST memaddr, LONGEST len)
+raw_memory_xfer_partial (struct target_ops *ops, gdb_byte *readbuf,
+                        const gdb_byte *writebuf, ULONGEST memaddr, LONGEST len)
 {
   LONGEST res;
 
@@ -1427,7 +1427,7 @@ raw_memory_xfer_partial (struct target_ops *ops, void *readbuf,
 
 static LONGEST
 memory_xfer_partial_1 (struct target_ops *ops, enum target_object object,
-                      void *readbuf, const void *writebuf, ULONGEST memaddr,
+                      gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST memaddr,
                       ULONGEST len)
 {
   LONGEST res;
@@ -1625,7 +1625,7 @@ memory_xfer_partial_1 (struct target_ops *ops, enum target_object object,
 
 static LONGEST
 memory_xfer_partial (struct target_ops *ops, enum target_object object,
-                    void *readbuf, const void *writebuf, ULONGEST memaddr,
+                    gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST memaddr,
                     ULONGEST len)
 {
   int res;
This page took 0.038615 seconds and 4 git commands to generate.