diff options
author | Yao Qi <yao@codesourcery.com> | 2013-12-16 14:39:12 +0800 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2014-01-23 11:50:29 +0800 |
commit | 17fde6d091a9a661119d152e2304012de5fce056 (patch) | |
tree | 36ecc8f415c6af93427403bff0cf9b15a151da96 /gdb/target.c | |
parent | f5a027733231f3af637a0cdcc0aaaa8c7870902d (diff) | |
download | gdb-17fde6d091a9a661119d152e2304012de5fce056.zip gdb-17fde6d091a9a661119d152e2304012de5fce056.tar.gz gdb-17fde6d091a9a661119d152e2304012de5fce056.tar.bz2 |
Use gdb_byte * instead of void *
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.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/target.c b/gdb/target.c index 576d6c7..3d63ada 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -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; |