aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2023-08-31 11:46:26 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-08-31 13:16:14 -0400
commit3be8c91910114853a64ab87fd1efaef220bb0205 (patch)
tree9028f14b2625d12593d2f5d62cef7b20c1eaaf3d /gdb/gdbtypes.h
parent886176b86503e0b2f7e569fcb96c901fc0d53d52 (diff)
downloadfsf-binutils-gdb-3be8c91910114853a64ab87fd1efaef220bb0205.zip
fsf-binutils-gdb-3be8c91910114853a64ab87fd1efaef220bb0205.tar.gz
fsf-binutils-gdb-3be8c91910114853a64ab87fd1efaef220bb0205.tar.bz2
gdb: remove FIELD_BITSIZE
Replace with field::bitsize. Change-Id: I400be235d6a1f446d0a4aafac01df5e850185d3a Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/gdbtypes.h')
-rw-r--r--gdb/gdbtypes.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h
index 00a792b..6c522a9 100644
--- a/gdb/gdbtypes.h
+++ b/gdb/gdbtypes.h
@@ -1933,10 +1933,8 @@ 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_BITSIZE(thisfld) ((thisfld).bitsize ())
-
-#define TYPE_FIELD_BITSIZE(thistype, n) FIELD_BITSIZE((thistype)->field (n))
-#define TYPE_FIELD_PACKED(thistype, n) (FIELD_BITSIZE((thistype)->field (n))!=0)
+#define TYPE_FIELD_BITSIZE(thistype, n) ((thistype)->field (n).bitsize ())
+#define TYPE_FIELD_PACKED(thistype, n) (((thistype)->field (n).bitsize ())!=0)
#define TYPE_FIELD_PRIVATE_BITS(thistype) \
TYPE_CPLUS_SPECIFIC(thistype)->private_field_bits