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:
parent
8a50fdcefc
commit
27710edb4e
97 changed files with 683 additions and 687 deletions
|
@ -108,7 +108,7 @@ pascal_is_string_type (struct type *type,int *length_pos, int *length_size,
|
|||
if (string_pos)
|
||||
*string_pos = type->field (1).loc_bitpos () / TARGET_CHAR_BIT;
|
||||
if (char_type)
|
||||
*char_type = TYPE_TARGET_TYPE (type->field (1).type ());
|
||||
*char_type = type->field (1).type ()->target_type ();
|
||||
if (arrayname)
|
||||
*arrayname = type->field (1).name ();
|
||||
return 2;
|
||||
|
@ -130,10 +130,10 @@ pascal_is_string_type (struct type *type,int *length_pos, int *length_size,
|
|||
/* FIXME: how can I detect wide chars in GPC ?? */
|
||||
if (char_type)
|
||||
{
|
||||
*char_type = TYPE_TARGET_TYPE (type->field (2).type ());
|
||||
*char_type = type->field (2).type ()->target_type ();
|
||||
|
||||
if ((*char_type)->code () == TYPE_CODE_ARRAY)
|
||||
*char_type = TYPE_TARGET_TYPE (*char_type);
|
||||
*char_type = (*char_type)->target_type ();
|
||||
}
|
||||
if (arrayname)
|
||||
*arrayname = type->field (2).name ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue