mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-25 16:57:52 +00:00
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.
This commit is contained in:
@@ -696,6 +696,10 @@ extern int value_in (struct value *element, struct value *set);
|
||||
extern int value_bit_index (struct type *type, const gdb_byte *addr,
|
||||
int index);
|
||||
|
||||
extern enum return_value_convention
|
||||
struct_return_convention (struct gdbarch *gdbarch, struct value *function,
|
||||
struct type *value_type);
|
||||
|
||||
extern int using_struct_return (struct gdbarch *gdbarch,
|
||||
struct value *function,
|
||||
struct type *value_type);
|
||||
|
||||
Reference in New Issue
Block a user