diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-08-31 11:46:28 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-08-31 13:16:15 -0400 |
commit | 8c329d5c651e671f9aa9ed87224dc9943a7f76e6 (patch) | |
tree | 4ae6c18c1abf1ebdc904fb85680c6e54d9f98624 /gdb/valops.c | |
parent | 3757d2d44f63b446469723e0a7a8c0dc2f695a6c (diff) | |
download | gdb-8c329d5c651e671f9aa9ed87224dc9943a7f76e6.zip gdb-8c329d5c651e671f9aa9ed87224dc9943a7f76e6.tar.gz gdb-8c329d5c651e671f9aa9ed87224dc9943a7f76e6.tar.bz2 |
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 b007fe0..70851cd 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) |