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]

remote-mips.c: Update the prototype of mips_xfer_memory()


Hello,

 The deprecated_xfer_memory() member of "struct target_ops" takes 
"gdb_byte *" as the second argument now.  This change updates 
remote-mips.c accordingly.

 This change should be obvious, though it cannot be tested with the tree 
as is, as for whatever reason the file is currently not built in any 
configuration.  I tested it successfully with the "mipsisa32-sde-elf" 
target with a patch that enables this file to be built, which I will 
submit later on.

2007-03-22  Nigel Stephens  <nigel@mips.com>
            Maciej W. Rozycki  <macro@mips.com>

	* remote-mips.c (mips_xfer_memory): Update prototype.

 OK to apply?

  Maciej

12036.diff
Index: gdb/src/gdb/remote-mips.c
===================================================================
--- gdb.orig/src/gdb/remote-mips.c	2007-02-13 13:51:16.000000000 +0000
+++ gdb/src/gdb/remote-mips.c	2007-02-13 13:51:23.000000000 +0000
@@ -108,7 +108,7 @@
 static int mips_store_word (CORE_ADDR addr, unsigned int value,
 			    char *old_contents);
 
-static int mips_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len,
+static int mips_xfer_memory (CORE_ADDR memaddr, gdb_byte *myaddr, int len,
 			     int write, 
 			     struct mem_attrib *attrib,
 			     struct target_ops *target);
@@ -2029,7 +2029,7 @@
 static int mask_address_p = 1;
 
 static int
-mips_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
+mips_xfer_memory (CORE_ADDR memaddr, gdb_byte *myaddr, int len, int write,
 		  struct mem_attrib *attrib, struct target_ops *target)
 {
   int i;


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