From c819a3380fc1b110b88bc6ab5ef9323dbe7d4753 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 22 Apr 2023 12:41:43 -0600 Subject: Replace field_is_static with a method This changes field_is_static to be a method on struct field, and updates all the callers. Most of this patch was written by script. Regression tested on x86-64 Fedora 36. --- 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 b68ec8d..feb94ef 100644 --- a/gdb/python/py-type.c +++ b/gdb/python/py-type.c @@ -154,7 +154,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 (field))) + if (!type->field (field).is_static ()) { const char *attrstring; -- cgit v1.1