[PATCH] Allow struct 'return' on 32-bit sparc.

David Miller davem@davemloft.net
Fri Feb 8 19:10:00 GMT 2013


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.

Thanks.



More information about the Gdb-patches mailing list