From 750eb019f10b80dfed775e0062e33326f5a79adb Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sun, 20 Jun 2004 18:10:14 +0000 Subject: 2004-06-20 Andrew Cagney * 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. --- gdb/values.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'gdb/values.c') 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) -- cgit v1.1