From 5fe830e4fe7e59c595fac7082edb4954e17a7688 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Thu, 2 Oct 2003 04:40:58 +0000 Subject: 2003-10-01 Andrew Cagney * value.h (register_value_being_returned): Declare. Replace "value_being_returned". * infcall.c (call_function_by_hand): Use register_value_being_returned. * infcmd.c (print_return_value): Call "register_value_being_returned", handle struct return locally. * values.c (register_value_being_returned): New function. Replace "value_being_returned". --- gdb/infcall.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'gdb/infcall.c') diff --git a/gdb/infcall.c b/gdb/infcall.c index 40dbb4b..f9cb87e 100644 --- a/gdb/infcall.c +++ b/gdb/infcall.c @@ -1101,12 +1101,9 @@ the function call).", name); } else { - /* This call to value_being_returned is never made when the - function uses "struct return convention". Hence, pass "0" - instead of STRUCT_RETURN. Besides, VALUE_TYPE, in - combination with RETURN_VALUE() (nee USE_STRUCT_CONVENTION) - can be used to re-construct the value of STRUCT_RETURN. */ - struct value *retval = value_being_returned (value_type, retbuf, 0); + /* The non-register case was handled above. */ + struct value *retval = register_value_being_returned (value_type, + retbuf); do_cleanups (retbuf_cleanup); return retval; } -- cgit v1.1