From 17fde6d091a9a661119d152e2304012de5fce056 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Mon, 16 Dec 2013 14:39:12 +0800 Subject: [PATCH] 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 * target.c (raw_memory_xfer_partial): Change argument type from void * to gdb_byte *. (memory_xfer_partial_1, memory_xfer_partial): Likewise. --- gdb/ChangeLog | 6 ++++++ gdb/target.c | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 01985429204..970dffb433f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2014-01-23 Yao Qi + + * 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 New gdbserver option --debug-format=timestamp. diff --git a/gdb/target.c b/gdb/target.c index 576d6c73a60..3d63ada5ad5 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; -- 2.30.2