diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-08-27 00:33:20 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-08-27 00:33:20 +0000 |
commit | e8239c2ffce1f620f08e626fb9a72c8e6bd7452c (patch) | |
tree | 637bdb2ac2e94d7a0ac621918c02c38d9df22842 /gdb/config | |
parent | 4c206d219cee4bffda3d11a403b298481c12fc97 (diff) | |
download | gdb-e8239c2ffce1f620f08e626fb9a72c8e6bd7452c.zip gdb-e8239c2ffce1f620f08e626fb9a72c8e6bd7452c.tar.gz gdb-e8239c2ffce1f620f08e626fb9a72c8e6bd7452c.tar.bz2 |
* config/mips/tm-mips.h (EXTRACT_STRUCT_VALUE_ADDRESS):
Get struct return address from v0, not a0.
Diffstat (limited to 'gdb/config')
-rw-r--r-- | gdb/config/mips/tm-mips.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/config/mips/tm-mips.h b/gdb/config/mips/tm-mips.h index f2b657c..c74bf37 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), \ |