mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
2003-10-01 Andrew Cagney <cagney@redhat.com>
* 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".
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user