aboutsummaryrefslogtreecommitdiff
path: root/gdb/values.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-05-08 23:02:10 +0000
committerMark Kettenis <kettenis@gnu.org>2004-05-08 23:02:10 +0000
commit31db7b6c38e66697f1353f6fbfba62c306d84240 (patch)
tree8837c3b26c49054e0d70bf118a97a36394fa6c88 /gdb/values.c
parent0543f3876c21499784e5f3624fd74bee30951874 (diff)
downloadgdb-31db7b6c38e66697f1353f6fbfba62c306d84240.zip
gdb-31db7b6c38e66697f1353f6fbfba62c306d84240.tar.gz
gdb-31db7b6c38e66697f1353f6fbfba62c306d84240.tar.bz2
* defs.h (enum return_value_convention): Add
RETURN_VALUE_ABI_RETURNS_ADDRESS and RETURN_VALUE_ABI_PRESERVES_ADDRESS. * infcmd.c (legacy_return_value): New function. (print_return_value): Rwerite to implement RETURN_VALUE_ABI_RETURNS_ADDRESS. * values.c (using_struct_return): Check for inequality to RETURN_VALUE_REGISTER_CONVENTION instead of equality to RETURN_VALUE_STRUCT_CONVENTION. * i386-tdep.c (i386_return_value): Implement RETURN_VALUE_ABI_RETURNS_ADDRESS.
Diffstat (limited to 'gdb/values.c')
-rw-r--r--gdb/values.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/values.c b/gdb/values.c
index 87baf21..f468ff8 100644
--- a/gdb/values.c
+++ b/gdb/values.c
@@ -1308,7 +1308,7 @@ using_struct_return (struct type *value_type, int gcc_p)
/* Probe the architecture for the return-value convention. */
return (gdbarch_return_value (current_gdbarch, value_type,
NULL, NULL, NULL)
- == RETURN_VALUE_STRUCT_CONVENTION);
+ != RETURN_VALUE_REGISTER_CONVENTION);
}
void