mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-26 05:20:30 +00:00
* infcmd.c (print_return_value): Move CHECK_TYPEDEF up. Deal with
RETURN_VALUE_ABI_PRESERVED_ADDRESS.
This commit is contained in:
parent
bc79cded48
commit
181fc57c8e
@ -1,5 +1,8 @@
|
|||||||
2005-08-17 Mark Kettenis <kettenis@gnu.org>
|
2005-08-17 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
|
* infcmd.c (print_return_value): Move CHECK_TYPEDEF up. Deal with
|
||||||
|
RETURN_VALUE_ABI_PRESERVED_ADDRESS.
|
||||||
|
|
||||||
* ppc-sysv-tdep.c (do_ppc_sysv_return_value): Fix the code that
|
* ppc-sysv-tdep.c (do_ppc_sysv_return_value): Fix the code that
|
||||||
deals with the broken GCC convention.
|
deals with the broken GCC convention.
|
||||||
|
|
||||||
|
@ -1111,6 +1111,7 @@ print_return_value (int struct_return, struct type *value_type)
|
|||||||
struct ui_stream *stb;
|
struct ui_stream *stb;
|
||||||
struct value *value;
|
struct value *value;
|
||||||
|
|
||||||
|
CHECK_TYPEDEF (value_type);
|
||||||
gdb_assert (TYPE_CODE (value_type) != TYPE_CODE_VOID);
|
gdb_assert (TYPE_CODE (value_type) != TYPE_CODE_VOID);
|
||||||
|
|
||||||
/* FIXME: 2003-09-27: When returning from a nested inferior function
|
/* FIXME: 2003-09-27: When returning from a nested inferior function
|
||||||
@ -1124,8 +1125,8 @@ print_return_value (int struct_return, struct type *value_type)
|
|||||||
{
|
{
|
||||||
case RETURN_VALUE_REGISTER_CONVENTION:
|
case RETURN_VALUE_REGISTER_CONVENTION:
|
||||||
case RETURN_VALUE_ABI_RETURNS_ADDRESS:
|
case RETURN_VALUE_ABI_RETURNS_ADDRESS:
|
||||||
|
case RETURN_VALUE_ABI_PRESERVES_ADDRESS:
|
||||||
value = allocate_value (value_type);
|
value = allocate_value (value_type);
|
||||||
CHECK_TYPEDEF (value_type);
|
|
||||||
gdbarch_return_value (current_gdbarch, value_type, stop_registers,
|
gdbarch_return_value (current_gdbarch, value_type, stop_registers,
|
||||||
value_contents_raw (value), NULL);
|
value_contents_raw (value), NULL);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user