This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [obish/cris] Delete extract_struct_value_address
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Cc: orjanf at axis dot com
- Date: Sat, 17 Jan 2004 19:02:30 -0500
- Subject: Re: [obish/cris] Delete extract_struct_value_address
- References: <400986D4.10803@gnu.org> <4009944E.2070405@gnu.org>
... and incorrectly removed this function. Cris has it in for me :-/ sorry,
Andrew
2004-01-17 Andrew Cagney <cagney@redhat.com>
* cris-tdep.c (cris_store_struct_return): Put back accidently
deleted function.
Index: cris-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/cris-tdep.c,v
retrieving revision 1.95
diff -u -r1.95 cris-tdep.c
--- cris-tdep.c 17 Jan 2004 20:02:04 -0000 1.95
+++ cris-tdep.c 18 Jan 2004 00:00:13 -0000
@@ -1076,6 +1076,17 @@
internal_error (__FILE__, __LINE__, "cris_abi_v2_extract_return_value: type length too large");
}
+/* Store the address of the place in which to copy the structure the
+ subroutine will return. In the CRIS ABI, R9 is used in order to
+ pass the address of the allocated area where a structure return
+ value must be stored. */
+
+static void
+cris_store_struct_return (CORE_ADDR addr, CORE_ADDR sp)
+{
+ write_register (STR_REGNUM, addr);
+}
+
/* Returns 1 if the given type will be passed by pointer rather than
directly. */