diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-09-26 16:36:15 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-10-29 16:44:44 -0400 |
commit | b610c04548a39dbce6d51c33d7a8125e59066939 (patch) | |
tree | 9ebf5e8721754311148f61ea22e71126a8318574 /gdb/d-valprint.c | |
parent | 2ad53ea10c14445d6074814bbdfe46bd787038cb (diff) | |
download | gdb-b610c04548a39dbce6d51c33d7a8125e59066939.zip gdb-b610c04548a39dbce6d51c33d7a8125e59066939.tar.gz gdb-b610c04548a39dbce6d51c33d7a8125e59066939.tar.bz2 |
gdb: remove TYPE_FIELD_BITPOS
Remove TYPE_FIELD_BITPOS, replace its uses with type::field +
field::loc_bitpos.
Change-Id: Iccd8d5a77e5352843a837babaa6bd284162e0320
Diffstat (limited to 'gdb/d-valprint.c')
-rw-r--r-- | gdb/d-valprint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/d-valprint.c b/gdb/d-valprint.c index 4b73c96..5f8ee94 100644 --- a/gdb/d-valprint.c +++ b/gdb/d-valprint.c @@ -55,7 +55,7 @@ dynamic_array_type (struct type *type, ptr_type = type->field (1).type (); elttype = check_typedef (TYPE_TARGET_TYPE (ptr_type)); addr = unpack_pointer (ptr_type, - valaddr + TYPE_FIELD_BITPOS (type, 1) / 8 + valaddr + type->field (1).loc_bitpos () / 8 + embedded_offset); true_type = check_typedef (elttype); |