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.
This commit is contained in:
Yao Qi 2013-12-16 14:39:12 +08:00
parent f5a0277332
commit 17fde6d091
2 changed files with 10 additions and 4 deletions

View 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.

View 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;