This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch]: Fix build failure due to warning with gcc 4.0.x
- From: Khem Raj <khem at mvista dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 23 Feb 2006 14:52:18 -0800
- Subject: [patch]: Fix build failure due to warning with gcc 4.0.x
Hi,
I found that the latest trunk arm-none-eabi cross-gdb failed to build
for me because of a warning due to mismatch in function parameter types.
The attached patch below gets rid of the warning
I tested the build for arm-eabi goes through with this patch. Is it ok ?
Thanks
-Khem
gdb/Changelog
2006-02-23 Khem Raj <khem@mvista.com>
* remote-rdp.c (remote_rdp_xfer_inferior_memory): Use gdb_byte.
Index: remote-rdp.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-rdp.c,v
retrieving revision 1.47
diff -u -r1.47 remote-rdp.c
--- remote-rdp.c 24 Jan 2006 22:09:28 -0000 1.47
+++ remote-rdp.c 23 Feb 2006 22:50:56 -0000
@@ -172,7 +172,7 @@
static char *commandline = NULL;
static int
-remote_rdp_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len,
+remote_rdp_xfer_inferior_memory (CORE_ADDR memaddr, gdb_byte *myaddr, int len,
int write,
struct mem_attrib *attrib,
struct target_ops *target);
@@ -1264,7 +1264,7 @@
Returns the number of bytes transferred. */
static int
-remote_rdp_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len,
+remote_rdp_xfer_inferior_memory (CORE_ADDR memaddr, gdb_byte *myaddr, int len,
int write, struct mem_attrib *attrib,
struct target_ops *target)
{