forked from Imagelibrary/binutils-gdb
gdb: remove TYPE_FIELD_BITSIZE
Replace with type::field + field::bitsize. Change-Id: I2a24755a33683e4a2775a6d2a7b7a9ae7362e43a Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
committed by
Simon Marchi
parent
3be8c91910
commit
3757d2d44f
@@ -2383,7 +2383,7 @@ array_operation::evaluate_struct_tuple (struct value *struct_val,
|
||||
if (val->type () != field_type)
|
||||
val = value_cast (field_type, val);
|
||||
|
||||
bitsize = TYPE_FIELD_BITSIZE (struct_type, fieldno);
|
||||
bitsize = struct_type->field (fieldno).bitsize ();
|
||||
bitpos = struct_type->field (fieldno).loc_bitpos ();
|
||||
addr = struct_val->contents_writeable ().data () + bitpos / 8;
|
||||
if (bitsize)
|
||||
|
||||
Reference in New Issue
Block a user