2004-06-13 Andrew Cagney <cagney@gnu.org>

* infcmd.c (print_return_value): Fix logic, allow
	DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
This commit is contained in:
Andrew Cagney 2004-06-13 17:05:55 +00:00
parent bceabdd859
commit e8c3165b25
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2004-06-13 Andrew Cagney <cagney@gnu.org> 2004-06-13 Andrew Cagney <cagney@gnu.org>
* infcmd.c (print_return_value): Fix logic, allow
DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
* gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
defining any macros. defining any macros.
* gdbarch.h: Re-generate. * gdbarch.h: Re-generate.

View file

@ -1109,7 +1109,7 @@ print_return_value (int struct_return, struct type *value_type)
internal_error (__FILE__, __LINE__, "bad switch"); internal_error (__FILE__, __LINE__, "bad switch");
} }
} }
else if (!struct_return && DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS_P ()) else if (struct_return && DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS_P ())
{ {
CORE_ADDR addr = DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS (stop_registers); CORE_ADDR addr = DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS (stop_registers);
if (!addr) if (!addr)