aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-tdep.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2001-05-12 00:38:11 +0000
committerJim Blandy <jimb@codesourcery.com>2001-05-12 00:38:11 +0000
commit99567b1b4e6c2eadde8f81b65e84bb635e08a275 (patch)
treefe0fbbd0be06808a931ca6f2c0a5bdae316f70d9 /gdb/mips-tdep.c
parentd3814881674ed862e5c9e2689c10ab799bbf7b8e (diff)
downloadgdb-99567b1b4e6c2eadde8f81b65e84bb635e08a275.zip
gdb-99567b1b4e6c2eadde8f81b65e84bb635e08a275.tar.gz
gdb-99567b1b4e6c2eadde8f81b65e84bb635e08a275.tar.bz2
* mips-tdep.c (mips_store_return_value,
mips_extract_return_value): Pass arguments to return_value_location in the proper order.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r--gdb/mips-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index 2b312f3..e10c9e9 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);