From: msnyder Date: Tue, 20 Aug 2002 19:32:47 +0000 (+0000) Subject: 2002-08-20 Michael Snyder X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=c23bcecff46dc226e3755bf85a47fbce2e7ba71c;p=pf3gnuchains%2Fsourceware.git 2002-08-20 Michael Snyder * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete. (EXTRACT_STRUCT_VALUE_ADDRESS): Delete. * mips-tdep.c (mips_store_struct_return): New function. (mips_extract_struct_value_address): New function. (mips_gdbarch_init): Set store_struct_return and extract_struct_value_address. --- diff --git a/gdb/config/mips/tm-mips.h b/gdb/config/mips/tm-mips.h index 572552c0a2..7ace4dc28e 100644 --- a/gdb/config/mips/tm-mips.h +++ b/gdb/config/mips/tm-mips.h @@ -170,24 +170,6 @@ extern void mips_register_convert_from_type (int regnum, #define REGISTER_CONVERT_FROM_TYPE(n, type, buffer) \ mips_register_convert_from_type ((n), (type), (buffer)) -/* Store the address of the place in which to copy the structure the - subroutine will return. Handled by mips_push_arguments. */ - -#define STORE_STRUCT_RETURN(addr, sp) -/**/ - -/* Extract from an array REGBUF containing the (raw) register state - the address in which a function should return its structure value, - 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 - convention is specified by the System V ABI, so I think we can rely - on it. */ - -#define DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS(REGBUF) \ - (extract_address (REGBUF + REGISTER_BYTE (V0_REGNUM), \ - REGISTER_RAW_SIZE (V0_REGNUM))) - /* Describe the pointer in each stack frame to the previous stack frame (its caller). */