This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Allow struct 'return' on 32-bit sparc.
From: David Miller <davem@davemloft.net>
Date: Fri, 08 Feb 2013 14:10:07 -0500 (EST)
> From: "Ulrich Weigand" <uweigand@de.ibm.com>
> Date: Fri, 8 Feb 2013 19:16:39 +0100 (CET)
>
>> David Miller wrote:
>>
>>> @@ -2327,6 +2328,7 @@ return_command (char *retval_exp, int from_tty)
>>> if (thisfun != NULL)
>>> function = read_var_value (thisfun, thisframe);
>>>
>>> + rv_conv = RETURN_VALUE_REGISTER_CONVENTION;
>>> if (TYPE_CODE (return_type) == TYPE_CODE_VOID)
>>> /* If the return-type is "void", don't try to find the
>>> return-value's location. However, do still evaluate the
>>
>> Maybe just move this up to the definition?
>
> Yes, that's a good idea, I'll commit such a fix.
Actually someone beat me to it :-)
2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
* stack.c (return_command): Work around uninitialized variable
warning.