From 83909c43b6d45ece8d6aa1acf2e82688fc2a6b17 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 11 Jun 1993 20:51:22 +0000 Subject: [PATCH] (mips_fetch_registers): Pass a pointer to SWAP_TARGET_AND_HOST, not an integer. --- gdb/ChangeLog | 2 ++ gdb/remote-mips.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0144a39f36..4e028390dc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -4,6 +4,8 @@ Fri Jun 11 13:33:40 1993 Ian Lance Taylor (ian@cygnus.com) in debugging info. (mips_request): Don't check that remote pid is 0, because sometimes it isn't. + (mips_fetch_registers): Pass a pointer to SWAP_TARGET_AND_HOST, + not an integer. Fri Jun 11 10:17:41 1993 Jim Kingdon (kingdon@cygnus.com) diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index 3a668ad7e5..eb86ebfd08 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); } -- 2.34.1