This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[ob] Fix -Werror prob in ppc-linux-tdep.c
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 13 Nov 2003 13:07:38 -0500
- Subject: [ob] Fix -Werror prob in ppc-linux-tdep.c
Missed this when updating all the callers :-( Detected by -Werror.
committed,
Andrew
2003-11-13 Andrew Cagney <cagney@redhat.com>
* ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
Index: ppc-linux-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/ppc-linux-tdep.c,v
retrieving revision 1.47
diff -u -r1.47 ppc-linux-tdep.c
--- ppc-linux-tdep.c 7 Nov 2003 20:44:51 -0000 1.47
+++ ppc-linux-tdep.c 13 Nov 2003 18:04:05 -0000
@@ -598,7 +598,8 @@
static enum return_value_convention
ppc_linux_return_value (struct gdbarch *gdbarch, struct type *valtype,
- struct regcache *regcache, const void *inval, void *outval)
+ struct regcache *regcache, void *readbuf,
+ const void *writebuf)
{
if ((TYPE_CODE (valtype) == TYPE_CODE_STRUCT
|| TYPE_CODE (valtype) == TYPE_CODE_UNION)
@@ -606,7 +607,8 @@
&& TYPE_VECTOR (valtype)))
return RETURN_VALUE_STRUCT_CONVENTION;
else
- return ppc_sysv_abi_return_value (gdbarch, valtype, regcache, inval, outval);
+ return ppc_sysv_abi_return_value (gdbarch, valtype, regcache, readbuf,
+ writebuf);
}
/* Fetch (and possibly build) an appropriate link_map_offsets