aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-typeprint.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/c-typeprint.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/c-typeprint.c')
-rw-r--r--gdb/c-typeprint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c
index 57b2c09..a23ceb0 100644
--- a/gdb/c-typeprint.c
+++ b/gdb/c-typeprint.c
@@ -535,7 +535,7 @@ c_type_print_args (struct type *type, struct ui_file *stream,
{
struct type *param_type;
- if (TYPE_FIELD_ARTIFICIAL (type, i) && linkage_name)
+ if (type->field (i).is_artificial () && linkage_name)
continue;
if (printed_any)
@@ -1102,7 +1102,7 @@ c_type_print_base_struct_union (struct type *type, struct ui_file *stream,
virtual table pointers are not specifically marked in
the debug info, they should be artificial. */
if ((i == vptr_fieldno && type == basetype)
- || TYPE_FIELD_ARTIFICIAL (type, i))
+ || type->field (i).is_artificial ())
continue;
if (need_access_label)