Allow struct 'return' on 32-bit sparc.
authorDavid S. Miller <davem@redhat.com>
Wed, 6 Feb 2013 19:40:04 +0000 (19:40 +0000)
committerDavid S. Miller <davem@redhat.com>
Wed, 6 Feb 2013 19:40:04 +0000 (19:40 +0000)
commitbbfdfe1c572ca7710cf08607db4935e8c8db174c
tree9b17fe788ec840a339b176b8fd82ebe353cef5fe
parentbc9abe4a9122ac5984bb05ecd895ddeec6c8a67c
Allow struct 'return' on 32-bit sparc.

gdb/

* sparc-tdep.c (sparc32_return_value): Handle writing return value when
using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
* value.c (struct_return_convention): New function.
(using_struct_return): Implement in terms of struct_return_convention.
* value.h (struct_return_convention): Declare.
* stack.c (return_command): Allow successful overriding of the return
value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
gdb/ChangeLog
gdb/sparc-tdep.c
gdb/stack.c
gdb/value.c
gdb/value.h