aboutsummaryrefslogtreecommitdiff
path: root/gdb/ax-gdb.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2023-08-31 11:46:27 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-08-31 13:16:14 -0400
commit3757d2d44f63b446469723e0a7a8c0dc2f695a6c (patch)
treed649580e7a3b2b92ab132bd623443695bcfc0bc0 /gdb/ax-gdb.c
parent3be8c91910114853a64ab87fd1efaef220bb0205 (diff)
downloadgdb-3757d2d44f63b446469723e0a7a8c0dc2f695a6c.zip
gdb-3757d2d44f63b446469723e0a7a8c0dc2f695a6c.tar.gz
gdb-3757d2d44f63b446469723e0a7a8c0dc2f695a6c.tar.bz2
gdb: remove TYPE_FIELD_BITSIZE
Replace with type::field + field::bitsize. Change-Id: I2a24755a33683e4a2775a6d2a7b7a9ae7362e43a Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/ax-gdb.c')
-rw-r--r--gdb/ax-gdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c
index 55450bd..068796a 100644
--- a/gdb/ax-gdb.c
+++ b/gdb/ax-gdb.c
@@ -1323,7 +1323,7 @@ gen_primitive_field (struct agent_expr *ax, struct axs_value *value,
+ type->field (fieldno).loc_bitpos ()),
(offset * TARGET_CHAR_BIT
+ type->field (fieldno).loc_bitpos ()
- + TYPE_FIELD_BITSIZE (type, fieldno)));
+ + type->field (fieldno).bitsize ()));
else
{
gen_offset (ax, offset