From: Siddhesh Poyarekar Date: Fri, 10 Aug 2012 18:55:18 +0000 (+0000) Subject: * python/py-type.c (convert_field): Use gdb_py_long_from_longest X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=200bc880f4ba86e027c4f45cbc912f494da768f2;p=binutils-gdb.git * python/py-type.c (convert_field): Use gdb_py_long_from_longest for TYPE_FIELD_BITPOS. (typy_get_sizeof): Likewise for TYPE_LENGTH. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 17f9b083a55..8de8ba73e22 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2012-08-10 Siddhesh Poyarekar + + * python/py-type.c (convert_field): Use gdb_py_long_from_longest + for TYPE_FIELD_BITPOS. + (typy_get_sizeof): Likewise for TYPE_LENGTH. + 2012-08-10 Mike Frysinger PR cli/10436: diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c index 98030a6fecc..a02402ef02b 100644 --- a/gdb/python/py-type.c +++ b/gdb/python/py-type.c @@ -176,7 +176,7 @@ convert_field (struct type *type, int field) } else { - arg = PyLong_FromLong (TYPE_FIELD_BITPOS (type, field)); + arg = gdb_py_long_from_longest (TYPE_FIELD_BITPOS (type, field)); attrstring = "bitpos"; } @@ -683,7 +683,7 @@ typy_get_sizeof (PyObject *self, void *closure) } /* Ignore exceptions. */ - return PyLong_FromLong (TYPE_LENGTH (type)); + return gdb_py_long_from_longest (TYPE_LENGTH (type)); } static struct type *