From b610c04548a39dbce6d51c33d7a8125e59066939 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Sun, 26 Sep 2021 16:36:15 -0400 Subject: gdb: remove TYPE_FIELD_BITPOS Remove TYPE_FIELD_BITPOS, replace its uses with type::field + field::loc_bitpos. Change-Id: Iccd8d5a77e5352843a837babaa6bd284162e0320 --- gdb/c-valprint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/c-valprint.c') diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c index c491d37..daf2453 100644 --- a/gdb/c-valprint.c +++ b/gdb/c-valprint.c @@ -372,7 +372,7 @@ c_value_print_struct (struct value *val, struct ui_file *stream, int recurse, /* Print vtable entry - we only get here if NOT using -fvtable_thunks. (Otherwise, look under TYPE_CODE_PTR.) */ - int offset = TYPE_FIELD_BITPOS (type, VTBL_FNADDR_OFFSET) / 8; + int offset = type->field (VTBL_FNADDR_OFFSET).loc_bitpos () / 8; struct type *field_type = type->field (VTBL_FNADDR_OFFSET).type (); const gdb_byte *valaddr = value_contents_for_printing (val).data (); CORE_ADDR addr = extract_typed_address (valaddr + offset, field_type); -- cgit v1.1