This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH OBV] 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.

I'll push it.

gdb:

2014-01-22  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/target.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/gdb/target.c b/gdb/target.c
index fd206cb..58c6dc4 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -1400,8 +1400,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;
 
@@ -1433,7 +1433,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;
@@ -1631,7 +1631,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;
-- 
1.7.7.6


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]