mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
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.
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user