From: Jim Kingdon Date: Fri, 27 Aug 1993 00:33:20 +0000 (+0000) Subject: * config/mips/tm-mips.h (EXTRACT_STRUCT_VALUE_ADDRESS): X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e8239c2ffce1f620f08e626fb9a72c8e6bd7452c;p=binutils-gdb.git * config/mips/tm-mips.h (EXTRACT_STRUCT_VALUE_ADDRESS): Get struct return address from v0, not a0. --- diff --git a/gdb/config/mips/tm-mips.h b/gdb/config/mips/tm-mips.h index f2b657c3e19..c74bf37258e 100644 --- a/gdb/config/mips/tm-mips.h +++ b/gdb/config/mips/tm-mips.h @@ -235,7 +235,8 @@ extern CORE_ADDR mips_skip_prologue PARAMS ((CORE_ADDR addr, int lenient)); as a CORE_ADDR (or an expression that can be used as one). */ /* The address is passed in a0 upon entry to the function, but when the function exits, the compiler has copied the value to v0. This - seems to be a convention followed by both cc and gcc. */ + convention is specified by the System V ABI, so I think we can rely + on it. */ #define EXTRACT_STRUCT_VALUE_ADDRESS(REGBUF) \ (extract_address (REGBUF + REGISTER_BYTE (V0_REGNUM), \