aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-08-17 15:08:33 +0000
committerMark Kettenis <kettenis@gnu.org>2005-08-17 15:08:33 +0000
commit181fc57c8ef929575f684baccf4de7fa9eef61b6 (patch)
tree5215113519135f39b7150ea3be8fa4d5a55c69f8 /gdb/infcmd.c
parentbc79cded48d30c9812501976924d9076885478b1 (diff)
downloadgdb-181fc57c8ef929575f684baccf4de7fa9eef61b6.zip
gdb-181fc57c8ef929575f684baccf4de7fa9eef61b6.tar.gz
gdb-181fc57c8ef929575f684baccf4de7fa9eef61b6.tar.bz2
* infcmd.c (print_return_value): Move CHECK_TYPEDEF up. Deal with
RETURN_VALUE_ABI_PRESERVED_ADDRESS.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r--gdb/infcmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index dff889f..43207dc 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;