diff options
author | 2023-08-31 11:46:28 -0400 | |
---|---|---|
committer | 2023-08-31 13:16:15 -0400 | |
commit | 8c329d5c651e671f9aa9ed87224dc9943a7f76e6 (patch) | |
tree | 4ae6c18c1abf1ebdc904fb85680c6e54d9f98624 /gdb/valops.c | |
parent | gdb: remove TYPE_FIELD_BITSIZE (diff) | |
download | binutils-gdb-8c329d5c651e671f9aa9ed87224dc9943a7f76e6.tar.gz binutils-gdb-8c329d5c651e671f9aa9ed87224dc9943a7f76e6.tar.bz2 binutils-gdb-8c329d5c651e671f9aa9ed87224dc9943a7f76e6.zip |
gdb: remove TYPE_FIELD_PACKED
Replace with a new equivalent "is_packed" method on struct field.
Change-Id: I78647be3d408b40b63becb6b6f0fca211bede51c
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/valops.c')
-rw-r--r-- | gdb/valops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/valops.c b/gdb/valops.c index b007fe08d34..70851cd40b4 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -3581,7 +3581,7 @@ value_struct_elt_for_reference (struct type *domain, int offset, v = value_addr (v); return v; } - if (TYPE_FIELD_PACKED (t, i)) + if (t->field (i).is_packed ()) error (_("pointers to bitfield members not allowed")); if (want_address) |