diff options
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r-- | gdb/infcmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 69a7896..a6c5518 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -1466,7 +1466,7 @@ get_return_value (struct symbol *func_symbol, struct value *function) struct value *value; struct type *value_type - = check_typedef (TYPE_TARGET_TYPE (func_symbol->type ())); + = check_typedef (func_symbol->type ()->target_type ()); gdb_assert (value_type->code () != TYPE_CODE_VOID); if (is_nocall_function (check_typedef (::value_type (function)))) @@ -1626,7 +1626,7 @@ finish_command_fsm::should_stop (struct thread_info *tp) /* We're done. */ set_finished (); - rv->type = TYPE_TARGET_TYPE (function->type ()); + rv->type = function->type ()->target_type (); if (rv->type == NULL) internal_error (__FILE__, __LINE__, _("finish_command: function has no target type")); |