aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-type.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2023-08-31 11:46:27 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-08-31 13:16:14 -0400
commit3757d2d44f63b446469723e0a7a8c0dc2f695a6c (patch)
treed649580e7a3b2b92ab132bd623443695bcfc0bc0 /gdb/python/py-type.c
parent3be8c91910114853a64ab87fd1efaef220bb0205 (diff)
downloadfsf-binutils-gdb-3757d2d44f63b446469723e0a7a8c0dc2f695a6c.zip
fsf-binutils-gdb-3757d2d44f63b446469723e0a7a8c0dc2f695a6c.tar.gz
fsf-binutils-gdb-3757d2d44f63b446469723e0a7a8c0dc2f695a6c.tar.bz2
gdb: remove TYPE_FIELD_BITSIZE
Replace with type::field + field::bitsize. Change-Id: I2a24755a33683e4a2775a6d2a7b7a9ae7362e43a Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/python/py-type.c')
-rw-r--r--gdb/python/py-type.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c
index 9933bb3..0ea30d6 100644
--- a/gdb/python/py-type.c
+++ b/gdb/python/py-type.c
@@ -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)