This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
remote-mips.c: Update the prototype of mips_xfer_memory()
- From: "Maciej W. Rozycki" <macro at mips dot com>
- To: gdb-patches at sourceware dot org
- Cc: Nigel Stephens <nigel at mips dot com>, "Maciej W. Rozycki" <macro at linux-mips dot org>
- Date: Thu, 22 Mar 2007 13:20:15 +0000 (GMT)
- Subject: 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;