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
@@ -1161,8 +1161,7 @@ c_type_print_base_struct_union (struct type *type, struct ui_file *stream,
|
||||
unnamed fields. This would lead to misleading
|
||||
results if the compiler does not put out fields
|
||||
for such things (I don't know what it does). */
|
||||
gdb_printf (stream, " : %d",
|
||||
TYPE_FIELD_BITSIZE (type, i));
|
||||
gdb_printf (stream, " : %d", type->field (i).bitsize ());
|
||||
}
|
||||
gdb_printf (stream, ";\n");
|
||||
}
|
||||
@@ -1591,11 +1590,11 @@ c_type_print_base_1 (struct type *type, struct ui_file *stream,
|
||||
language, &local_flags, podata);
|
||||
gdb_printf (stream, " @%s",
|
||||
plongest (type->field (i).loc_bitpos ()));
|
||||
if (TYPE_FIELD_BITSIZE (type, i) > 1)
|
||||
if (type->field (i).bitsize () > 1)
|
||||
{
|
||||
gdb_printf (stream, "-%s",
|
||||
plongest (type->field (i).loc_bitpos ()
|
||||
+ TYPE_FIELD_BITSIZE (type, i)
|
||||
+ type->field (i).bitsize ()
|
||||
- 1));
|
||||
}
|
||||
gdb_printf (stream, ";\n");
|
||||
|
||||
Reference in New Issue
Block a user