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:
Simon Marchi
2022-07-30 22:43:54 -04:00
parent 8a50fdcefc
commit 27710edb4e
97 changed files with 683 additions and 687 deletions

View File

@@ -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"));