X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fpython%2Fpy-type.c;h=7862f70d472b61f5aa66e80f9b056429f1f6b2a0;hb=ceacbf6edf2c72aaa16280205a9bfc8513e9ed27;hp=dbe25ad8f6cd53330eb48b91bb2885ec7321605a;hpb=26f16254544873f4d7450f6fbbc8f34bf3d2e359;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c index dbe25ad8f6..7862f70d47 100644 --- a/gdb/python/py-type.c +++ b/gdb/python/py-type.c @@ -177,7 +177,7 @@ convert_field (struct type *type, int field) if (PyObject_SetAttrString (result.get (), "parent_type", arg.get ()) < 0) return NULL; - if (!field_is_static (&TYPE_FIELD (type, field))) + if (!field_is_static (&type->field (field))) { const char *attrstring;