mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
2007-06-18 Markus Deuling <deuling@de.ibm.com>
* gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with gdbarch_extract_return_value. * value.c (generic_use_struct_convention): Likewise (comment). * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment). * arch-utils.c (legacy_return_value): Likewise. * arch-utils.h (legacy_return_value): Likewise (comment). * gdbarch.sh (STORE_RETURN_VALUE): Replace by gdbarch_store_return_value. * stack.c (return_command): Likewise (comment). * arch-utils.h (legacy_return_value): Likewise (comment). * arch-utils.c (legacy_return_value): Likewise. * gdbarch.c, gdbarch.h: Regenerate.
This commit is contained in:
@ -61,17 +61,18 @@ legacy_return_value (struct gdbarch *gdbarch, struct type *valtype,
|
||||
{
|
||||
gdb_assert (!struct_return);
|
||||
/* NOTE: cagney/2004-06-13: See stack.c:return_command. Old
|
||||
architectures don't expect STORE_RETURN_VALUE to handle small
|
||||
architectures don't expect store_return_value to handle small
|
||||
structures. Should not be called with such types. */
|
||||
gdb_assert (TYPE_CODE (valtype) != TYPE_CODE_STRUCT
|
||||
&& TYPE_CODE (valtype) != TYPE_CODE_UNION);
|
||||
STORE_RETURN_VALUE (valtype, regcache, writebuf);
|
||||
gdbarch_store_return_value (current_gdbarch, valtype, regcache, writebuf);
|
||||
}
|
||||
|
||||
if (readbuf != NULL)
|
||||
{
|
||||
gdb_assert (!struct_return);
|
||||
EXTRACT_RETURN_VALUE (valtype, regcache, readbuf);
|
||||
gdbarch_extract_return_value (current_gdbarch,
|
||||
valtype, regcache, readbuf);
|
||||
}
|
||||
|
||||
if (struct_return)
|
||||
|
Reference in New Issue
Block a user