aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2023-08-31 11:46:23 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-08-31 13:16:12 -0400
commit6c0f749351bb8f46bd6a37f9a36be8b8174f689d (patch)
treead9f43e90b4097b08d79a32eac6ffe52920b6f1b /gdb/gdbtypes.h
parent321d8b3f28cc04fe8c58ac391025e8b18134ca60 (diff)
downloadgdb-6c0f749351bb8f46bd6a37f9a36be8b8174f689d.zip
gdb-6c0f749351bb8f46bd6a37f9a36be8b8174f689d.tar.gz
gdb-6c0f749351bb8f46bd6a37f9a36be8b8174f689d.tar.bz2
gdb: remove FIELD_ARTIFICIAL
Replace uses with field::is_artificial. Change-Id: I599616fdd9f4b6d044de492e8151aa6130725cd1 Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/gdbtypes.h')
-rw-r--r--gdb/gdbtypes.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h
index 43263a9..9aa4a5c 100644
--- a/gdb/gdbtypes.h
+++ b/gdb/gdbtypes.h
@@ -1923,10 +1923,9 @@ extern void set_type_vptr_basetype (struct type *, struct type *);
(TYPE_CPLUS_SPECIFIC(thistype)->virtual_field_bits == NULL ? 0 \
: B_TST(TYPE_CPLUS_SPECIFIC(thistype)->virtual_field_bits, (index)))
-#define FIELD_ARTIFICIAL(thisfld) ((thisfld).is_artificial ())
#define FIELD_BITSIZE(thisfld) ((thisfld).bitsize)
-#define TYPE_FIELD_ARTIFICIAL(thistype, n) FIELD_ARTIFICIAL((thistype)->field (n))
+#define TYPE_FIELD_ARTIFICIAL(thistype, n) ((thistype)->field (n).is_artificial ())
#define TYPE_FIELD_BITSIZE(thistype, n) FIELD_BITSIZE((thistype)->field (n))
#define TYPE_FIELD_PACKED(thistype, n) (FIELD_BITSIZE((thistype)->field (n))!=0)