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/p-lang.c | |
parent | 2ad53ea10c14445d6074814bbdfe46bd787038cb (diff) | |
download | binutils-b610c04548a39dbce6d51c33d7a8125e59066939.zip binutils-b610c04548a39dbce6d51c33d7a8125e59066939.tar.gz binutils-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/p-lang.c')
-rw-r--r-- | gdb/p-lang.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/p-lang.c b/gdb/p-lang.c index cac8fbe..b30b03b 100644 --- a/gdb/p-lang.c +++ b/gdb/p-lang.c @@ -102,11 +102,11 @@ pascal_is_string_type (struct type *type,int *length_pos, int *length_size, && strcmp (type->field (1).name (), "st") == 0) { if (length_pos) - *length_pos = TYPE_FIELD_BITPOS (type, 0) / TARGET_CHAR_BIT; + *length_pos = type->field (0).loc_bitpos () / TARGET_CHAR_BIT; if (length_size) *length_size = TYPE_LENGTH (type->field (0).type ()); if (string_pos) - *string_pos = TYPE_FIELD_BITPOS (type, 1) / TARGET_CHAR_BIT; + *string_pos = type->field (1).loc_bitpos () / TARGET_CHAR_BIT; if (char_type) *char_type = TYPE_TARGET_TYPE (type->field (1).type ()); if (arrayname) @@ -122,11 +122,11 @@ pascal_is_string_type (struct type *type,int *length_pos, int *length_size, && strcmp (type->field (1).name (), "length") == 0) { if (length_pos) - *length_pos = TYPE_FIELD_BITPOS (type, 1) / TARGET_CHAR_BIT; + *length_pos = type->field (1).loc_bitpos () / TARGET_CHAR_BIT; if (length_size) *length_size = TYPE_LENGTH (type->field (1).type ()); if (string_pos) - *string_pos = TYPE_FIELD_BITPOS (type, 2) / TARGET_CHAR_BIT; + *string_pos = type->field (2).loc_bitpos () / TARGET_CHAR_BIT; /* FIXME: how can I detect wide chars in GPC ?? */ if (char_type) { |