diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-08-31 11:46:24 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-08-31 13:16:13 -0400 |
commit | 454977cdc414ebdb45cda0072b26569fd387d659 (patch) | |
tree | 03b89b6dfbf1c48fa1aeda02a3b0fe82498a2db8 /gdb/valops.c | |
parent | 6c0f749351bb8f46bd6a37f9a36be8b8174f689d (diff) | |
download | gdb-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/valops.c')
-rw-r--r-- | gdb/valops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/valops.c b/gdb/valops.c index 6404091..b007fe0 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -3464,7 +3464,7 @@ compare_parameters (struct type *t1, struct type *t2, int skip_artificial) { int start = 0; - if (t1->num_fields () > 0 && TYPE_FIELD_ARTIFICIAL (t1, 0)) + if (t1->num_fields () > 0 && t1->field (0).is_artificial ()) ++start; /* If skipping artificial fields, find the first real field @@ -3472,7 +3472,7 @@ compare_parameters (struct type *t1, struct type *t2, int skip_artificial) if (skip_artificial) { while (start < t1->num_fields () - && TYPE_FIELD_ARTIFICIAL (t1, start)) + && t1->field (start).is_artificial ()) ++start; } |