From e8c3165b25e76fe7b1f0f5b8efd8c11d4a97dd96 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sun, 13 Jun 2004 17:05:55 +0000 Subject: [PATCH] 2004-06-13 Andrew Cagney * infcmd.c (print_return_value): Fix logic, allow DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return. --- gdb/ChangeLog | 3 +++ gdb/infcmd.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c2c8740b389..88d2c463b0f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2004-06-13 Andrew Cagney + * 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 defining any macros. * gdbarch.h: Re-generate. diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 4eeacca8838..3aa6e41c4ab 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -1109,7 +1109,7 @@ print_return_value (int struct_return, struct type *value_type) 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); if (!addr) -- 2.30.2