mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
gdb: remove TYPE_FIELD_BITSIZE
Replace with type::field + field::bitsize. Change-Id: I2a24755a33683e4a2775a6d2a7b7a9ae7362e43a Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:

committed by
Simon Marchi

parent
3be8c91910
commit
3757d2d44f
@ -208,7 +208,7 @@ convert_field (struct type *type, int field)
|
||||
if (PyObject_SetAttrString (result.get (), "is_base_class", arg.get ()) < 0)
|
||||
return NULL;
|
||||
|
||||
arg = gdb_py_object_from_longest (TYPE_FIELD_BITSIZE (type, field));
|
||||
arg = gdb_py_object_from_longest (type->field (field).bitsize ());
|
||||
if (arg == NULL)
|
||||
return NULL;
|
||||
if (PyObject_SetAttrString (result.get (), "bitsize", arg.get ()) < 0)
|
||||
|
Reference in New Issue
Block a user