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/python/py-type.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/python') diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c index 7980bec..0895093 100644 --- a/gdb/python/py-type.c +++ b/gdb/python/py-type.c @@ -192,7 +192,7 @@ convert_field (struct type *type, int field) if (type->field (field).loc_kind () == FIELD_LOC_KIND_DWARF_BLOCK) arg = gdbpy_ref<>::new_reference (Py_None); else - arg = gdb_py_object_from_longest (TYPE_FIELD_BITPOS (type, field)); + arg = gdb_py_object_from_longest (type->field (field).loc_bitpos ()); attrstring = "bitpos"; } -- cgit v1.1