From 181fc57c8ef929575f684baccf4de7fa9eef61b6 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Wed, 17 Aug 2005 15:08:33 +0000 Subject: [PATCH] * infcmd.c (print_return_value): Move CHECK_TYPEDEF up. Deal with RETURN_VALUE_ABI_PRESERVED_ADDRESS. --- gdb/ChangeLog | 3 +++ gdb/infcmd.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3ff6d7eea32..8ea18b36560 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2005-08-17 Mark Kettenis + * 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 deals with the broken GCC convention. diff --git a/gdb/infcmd.c b/gdb/infcmd.c index dff889f9cc1..43207dce31d 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -1111,6 +1111,7 @@ print_return_value (int struct_return, struct type *value_type) struct ui_stream *stb; struct value *value; + CHECK_TYPEDEF (value_type); gdb_assert (TYPE_CODE (value_type) != TYPE_CODE_VOID); /* 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_ABI_RETURNS_ADDRESS: + case RETURN_VALUE_ABI_PRESERVES_ADDRESS: value = allocate_value (value_type); - CHECK_TYPEDEF (value_type); gdbarch_return_value (current_gdbarch, value_type, stop_registers, value_contents_raw (value), NULL); break; -- 2.30.2