forked from Imagelibrary/binutils-gdb
gdb: introduce field::is_artificial / field::set_is_artificial
Add these two methods, rename the field to m_artificial to make it pseudo private. Change-Id: If3a3825473d1d79bb586a8a074b87bba9b43fb1a Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
committed by
Simon Marchi
parent
4bea97df59
commit
321d8b3f28
@@ -5541,8 +5541,8 @@ copy_type_recursive (struct type *type, htab_t copied_types)
|
||||
|
||||
for (i = 0; i < nfields; i++)
|
||||
{
|
||||
TYPE_FIELD_ARTIFICIAL (new_type, i) =
|
||||
TYPE_FIELD_ARTIFICIAL (type, i);
|
||||
new_type->field (i).set_is_artificial
|
||||
(TYPE_FIELD_ARTIFICIAL (type, i));
|
||||
TYPE_FIELD_BITSIZE (new_type, i) = TYPE_FIELD_BITSIZE (type, i);
|
||||
if (type->field (i).type ())
|
||||
new_type->field (i).set_type
|
||||
|
||||
Reference in New Issue
Block a user