mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-31 18:20:12 +08:00
2004-01-26 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add comments mentioning extract_returned_value_address. * infcmd.c (print_return_value): Update. Add comments on extract_returned_value_address. * stack.c (return_command): Add comments on extract_returned_value_address. * values.c: Update comment. * m32r-tdep.c: Update comment. * sparc-tdep.c: Update comment. * ia64-tdep.c (ia64_use_struct_convention): Update comment. * xstormy16-tdep.c (xstormy16_gdbarch_init): Update. * sh64-tdep.c (sh64_gdbarch_init): Update. * sh-tdep.c (sh_gdbarch_init): Update. * s390-tdep.c (s390_gdbarch_init): Update. * rs6000-tdep.c (rs6000_gdbarch_init): Update. * m68klinux-tdep.c (m68k_linux_init_abi): Update. * m68k-tdep.c (m68k_gdbarch_init): Update. * m68hc11-tdep.c (m68hc11_gdbarch_init): Update. * m32r-tdep.c (m32r_gdbarch_init): Update. * ia64-tdep.c (ia64_gdbarch_init): Update. * h8300-tdep.c (h8300_gdbarch_init): Update. * frv-tdep.c (frv_gdbarch_init): Update. * arm-tdep.c (arm_gdbarch_init): Update. * alpha-tdep.c (alpha_gdbarch_init): Update. Index: doc/ChangeLog 2004-01-26 Andrew Cagney <cagney@redhat.com> * gdbint.texinfo (Target Architecture Definition): Rename EXTRACT_STRUCT_VALUE_ADDRESS to DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
This commit is contained in:
@ -1857,6 +1857,9 @@ return_command (char *retval_exp, int from_tty)
|
||||
is discarded, side effects such as "return i++" still
|
||||
occure. */
|
||||
return_value = NULL;
|
||||
/* FIXME: cagney/2004-01-17: If the architecture implements both
|
||||
return_value and extract_returned_value_address, should allow
|
||||
"return" to work - don't set return_value to NULL. */
|
||||
else if (!gdbarch_return_value_p (current_gdbarch)
|
||||
&& (TYPE_CODE (return_type) == TYPE_CODE_STRUCT
|
||||
|| TYPE_CODE (return_type) == TYPE_CODE_UNION))
|
||||
@ -1926,6 +1929,10 @@ If you continue, the return value that you specified will be ignored.\n";
|
||||
STORE_RETURN_VALUE (return_type, current_regcache,
|
||||
VALUE_CONTENTS (return_value));
|
||||
}
|
||||
/* FIXME: cagney/2004-01-17: If extract_returned_value_address
|
||||
is available and the function is using
|
||||
RETURN_VALUE_STRUCT_CONVENTION, should use it to find the
|
||||
address of the returned value so that it can be assigned. */
|
||||
else
|
||||
{
|
||||
gdb_assert (gdbarch_return_value (current_gdbarch, return_type,
|
||||
|
Reference in New Issue
Block a user