aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-06-13 17:05:55 +0000
committerAndrew Cagney <cagney@redhat.com>2004-06-13 17:05:55 +0000
commite8c3165b25e76fe7b1f0f5b8efd8c11d4a97dd96 (patch)
treeb60c6743de0f433f2940997dcad14cecd7e7b152 /gdb/infcmd.c
parentbceabdd859c99af6eec77029ec5d798a7854d75f (diff)
downloadgdb-e8c3165b25e76fe7b1f0f5b8efd8c11d4a97dd96.zip
gdb-e8c3165b25e76fe7b1f0f5b8efd8c11d4a97dd96.tar.gz
gdb-e8c3165b25e76fe7b1f0f5b8efd8c11d4a97dd96.tar.bz2
2004-06-13 Andrew Cagney <cagney@gnu.org>
* infcmd.c (print_return_value): Fix logic, allow DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r--gdb/infcmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 4eeacca..3aa6e41 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)