forked from Imagelibrary/binutils-gdb
gdb: remove TYPE_TARGET_TYPE
Remove the macro, replace all uses by calls to type::target_type. Change-Id: Ie51d3e1e22f94130176d6abd723255282bb6d1ed
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user