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/c-varobj.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/c-varobj.c')
-rw-r--r-- | gdb/c-varobj.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/c-varobj.c b/gdb/c-varobj.c index 87eca6b..b00a234 100644 --- a/gdb/c-varobj.c +++ b/gdb/c-varobj.c @@ -651,7 +651,7 @@ cplus_class_num_children (struct type *type, int children[3]) table pointers are not specifically marked in the debug info, they should be artificial. */ if ((type == basetype && i == vptr_fieldno) - || TYPE_FIELD_ARTIFICIAL (type, i)) + || type->field (i).is_artificial ()) continue; if (TYPE_FIELD_PROTECTED (type, i)) @@ -751,7 +751,7 @@ cplus_describe_child (const struct varobj *parent, int index, while (index >= 0) { if ((type == basetype && type_index == vptr_fieldno) - || TYPE_FIELD_ARTIFICIAL (type, type_index)) + || type->field (type_index).is_artificial ()) ; /* ignore vptr */ else if (match_accessibility (type, type_index, acc)) --index; |