gdb: remove TYPE_FIELD_BITPOS
Remove TYPE_FIELD_BITPOS, replace its uses with type::field + field::loc_bitpos. Change-Id: Iccd8d5a77e5352843a837babaa6bd284162e0320
This commit is contained in:
parent
2ad53ea10c
commit
b610c04548
30 changed files with 87 additions and 93 deletions
|
@ -1192,7 +1192,7 @@ c_type_print_base_struct_union (struct type *type, struct ui_file *stream,
|
|||
/* Make sure we carry our offset when we expand the
|
||||
struct/union. */
|
||||
local_podata.offset_bitpos
|
||||
= podata->offset_bitpos + TYPE_FIELD_BITPOS (type, i);
|
||||
= podata->offset_bitpos + type->field (i).loc_bitpos ();
|
||||
/* We're entering a struct/union. Right now,
|
||||
PODATA->END_BITPOS points right *after* the
|
||||
struct/union. However, when printing the first field
|
||||
|
@ -1646,11 +1646,11 @@ c_type_print_base_1 (struct type *type, struct ui_file *stream,
|
|||
stream, show, level + 4,
|
||||
language, &local_flags, podata);
|
||||
fprintf_filtered (stream, " @%s",
|
||||
plongest (TYPE_FIELD_BITPOS (type, i)));
|
||||
plongest (type->field (i).loc_bitpos ()));
|
||||
if (TYPE_FIELD_BITSIZE (type, i) > 1)
|
||||
{
|
||||
fprintf_filtered (stream, "-%s",
|
||||
plongest (TYPE_FIELD_BITPOS (type, i)
|
||||
plongest (type->field (i).loc_bitpos ()
|
||||
+ TYPE_FIELD_BITSIZE (type, i)
|
||||
- 1));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue