aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-mips.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-06-11 20:51:22 +0000
committerIan Lance Taylor <ian@airs.com>1993-06-11 20:51:22 +0000
commit83909c43b6d45ece8d6aa1acf2e82688fc2a6b17 (patch)
treea5b54b1d2d54731f81d0c5473ef80a57e857e945 /gdb/remote-mips.c
parentf63f30e2cc5681e794b64e7452eb8758d400cdee (diff)
downloadfsf-binutils-gdb-83909c43b6d45ece8d6aa1acf2e82688fc2a6b17.zip
fsf-binutils-gdb-83909c43b6d45ece8d6aa1acf2e82688fc2a6b17.tar.gz
fsf-binutils-gdb-83909c43b6d45ece8d6aa1acf2e82688fc2a6b17.tar.bz2
(mips_fetch_registers): Pass a pointer to SWAP_TARGET_AND_HOST,
not an integer.
Diffstat (limited to 'gdb/remote-mips.c')
-rw-r--r--gdb/remote-mips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c
index 3a668ad..eb86ebf 100644
--- a/gdb/remote-mips.c
+++ b/gdb/remote-mips.c
@@ -1061,7 +1061,7 @@ mips_fetch_registers (regno)
/* We got the number the register holds, but gdb expects to see a
value in the target byte ordering. */
- SWAP_TARGET_AND_HOST (val, sizeof (REGISTER_TYPE));
+ SWAP_TARGET_AND_HOST (&val, sizeof (REGISTER_TYPE));
supply_register (regno, (char *) &val);
}