aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2023-08-31 11:46:24 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-08-31 13:16:13 -0400
commit454977cdc414ebdb45cda0072b26569fd387d659 (patch)
tree03b89b6dfbf1c48fa1aeda02a3b0fe82498a2db8 /gdb/gdbtypes.c
parent6c0f749351bb8f46bd6a37f9a36be8b8174f689d (diff)
downloadgdb-454977cdc414ebdb45cda0072b26569fd387d659.zip
gdb-454977cdc414ebdb45cda0072b26569fd387d659.tar.gz
gdb-454977cdc414ebdb45cda0072b26569fd387d659.tar.bz2
gdb: remove TYPE_FIELD_ARTIFICIAL
Replace with type::field + field::is_artificial. Change-Id: Ie3bacae49d9bd02e83e504c1ce01470aba56a081 Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/gdbtypes.c')
-rw-r--r--gdb/gdbtypes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index 076a081..0f0638e 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -5542,7 +5542,7 @@ copy_type_recursive (struct type *type, htab_t copied_types)
for (i = 0; i < nfields; i++)
{
new_type->field (i).set_is_artificial
- (TYPE_FIELD_ARTIFICIAL (type, i));
+ (type->field (i).is_artificial ());
TYPE_FIELD_BITSIZE (new_type, i) = TYPE_FIELD_BITSIZE (type, i);
if (type->field (i).type ())
new_type->field (i).set_type