diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-06-20 18:10:14 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-06-20 18:10:14 +0000 |
commit | 750eb019f10b80dfed775e0062e33326f5a79adb (patch) | |
tree | 428eaa7d99873e8068d8c213ad6cbcfd725b0642 /gdb/values.c | |
parent | b5622e8d3cc3ba6ed60cbfee39a9c094074e27a1 (diff) | |
download | gdb-750eb019f10b80dfed775e0062e33326f5a79adb.zip gdb-750eb019f10b80dfed775e0062e33326f5a79adb.tar.gz gdb-750eb019f10b80dfed775e0062e33326f5a79adb.tar.bz2 |
2004-06-20 Andrew Cagney <cagney@gnu.org>
* gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
* gdbarch.h, gdbarch.c: Re-generate.
* Makefile.in (arch-utils.o): Update dependencies.
* values.c (using_struct_return): Move code calling
USE_STRUCT_CONVENTION to legacy_return_value, simplify.
* stack.c (return_command): Move code calling STORE_RETURN_VALUE
to legacy_return_value, simplify.
* infcmd.c (print_return_value): Move code calling
DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
to legacy_return_value, simplify.
* infcall.c (call_function_by_hand): Move code calling
EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
* arch-utils.c: Update copyright. Include "gdbcore.h".
(legacy_return_value): New function.
* arch-utils.h: Update copyright.
(legacy_return_value): Declare.
Diffstat (limited to 'gdb/values.c')
-rw-r--r-- | gdb/values.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/gdb/values.c b/gdb/values.c index 1b8e9b4..a42e53a 100644 --- a/gdb/values.c +++ b/gdb/values.c @@ -1247,20 +1247,6 @@ using_struct_return (struct type *value_type, int gcc_p) code in "print_return_value". */ return 0; - if (!gdbarch_return_value_p (current_gdbarch)) - { - /* FIXME: cagney/2003-10-01: The below is dead. Instead an - architecture should implement "gdbarch_return_value". Using - that new function it is possible to exactly specify the ABIs - "struct return" vs "register return" conventions. */ - if (code == TYPE_CODE_STRUCT - || code == TYPE_CODE_UNION - || code == TYPE_CODE_ARRAY) - return DEPRECATED_USE_STRUCT_CONVENTION (gcc_p, value_type); - else - return 0; - } - /* Probe the architecture for the return-value convention. */ return (gdbarch_return_value (current_gdbarch, value_type, NULL, NULL, NULL) |