]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/eval.c
gdb: remove TYPE_FIELD_BITSIZE
[thirdparty/binutils-gdb.git] / gdb / eval.c
index 5a255ab66c9483f9dbfcb7210ab9e4b3dff3beb8..794698f85bd19ca581969634618816ccf4eaa848 100644 (file)
@@ -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)