From: Jim Blandy Date: Sat, 12 May 2001 00:38:11 +0000 (+0000) Subject: * mips-tdep.c (mips_store_return_value, X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=99567b1b4e6c2eadde8f81b65e84bb635e08a275;p=binutils-gdb.git * mips-tdep.c (mips_store_return_value, mips_extract_return_value): Pass arguments to return_value_location in the proper order. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cc17da7b4dd..19cee47f07c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2001-05-11 Jim Blandy + + * mips-tdep.c (mips_store_return_value, + mips_extract_return_value): Pass arguments to + return_value_location in the proper order. + 2001-05-11 Andrew Cagney * Makefile.in (VERSION): Delete. Moved to file ``version.in''. diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 2b312f379d5..e10c9e9e305 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -3209,7 +3209,7 @@ mips_extract_return_value (struct type *valtype, { struct return_value_word lo; struct return_value_word hi; - return_value_location (valtype, &lo, &hi); + return_value_location (valtype, &hi, &lo); memcpy (valbuf + lo.buf_offset, regbuf + REGISTER_BYTE (lo.reg) + lo.reg_offset, @@ -3230,7 +3230,7 @@ mips_store_return_value (struct type *valtype, char *valbuf) char raw_buffer[MAX_REGISTER_RAW_SIZE]; struct return_value_word lo; struct return_value_word hi; - return_value_location (valtype, &lo, &hi); + return_value_location (valtype, &hi, &lo); memset (raw_buffer, 0, sizeof (raw_buffer)); memcpy (raw_buffer + lo.reg_offset, valbuf + lo.buf_offset, lo.len);