diff options
author | Jason Molenda <jmolenda@apple.com> | 1999-06-01 15:44:41 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 1999-06-01 15:44:41 +0000 |
commit | ac9a91a77ce5ce484bf8f62582292ef1f5b4dcf3 (patch) | |
tree | 00ebb9456083a2ad26b6a4e64c40b9b28f570ef4 /gdb/values.c | |
parent | aa903cfb1b8b2b9d5d5d23364cbf0a31b7c8d29a (diff) | |
download | gdb-ac9a91a77ce5ce484bf8f62582292ef1f5b4dcf3.zip gdb-ac9a91a77ce5ce484bf8f62582292ef1f5b4dcf3.tar.gz gdb-ac9a91a77ce5ce484bf8f62582292ef1f5b4dcf3.tar.bz2 |
import gdb-1999-06-01 snapshot
Diffstat (limited to 'gdb/values.c')
-rw-r--r-- | gdb/values.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/values.c b/gdb/values.c index c7c4d80..68e0444 100644 --- a/gdb/values.c +++ b/gdb/values.c @@ -1498,15 +1498,15 @@ value_being_returned (valtype, retbuf, struct_return) register value_ptr val; CORE_ADDR addr; -#if defined (EXTRACT_STRUCT_VALUE_ADDRESS) /* If this is not defined, just use EXTRACT_RETURN_VALUE instead. */ - if (struct_return) { - addr = EXTRACT_STRUCT_VALUE_ADDRESS (retbuf); - if (!addr) - error ("Function return value unknown"); - return value_at (valtype, addr, NULL); - } -#endif + if (EXTRACT_STRUCT_VALUE_ADDRESS_P) + if (struct_return) + { + addr = EXTRACT_STRUCT_VALUE_ADDRESS (retbuf); + if (!addr) + error ("Function return value unknown"); + return value_at (valtype, addr, NULL); + } val = allocate_value (valtype); CHECK_TYPEDEF (valtype); |