forked from Imagelibrary/binutils-gdb
* python/py-type.c (convert_field): Use gdb_py_long_from_longest
for TYPE_FIELD_BITPOS. (typy_get_sizeof): Likewise for TYPE_LENGTH.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
|
||||||
|
|
||||||
|
* 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 <vapier@gentoo.org>
|
2012-08-10 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
PR cli/10436:
|
PR cli/10436:
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ convert_field (struct type *type, int field)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
arg = PyLong_FromLong (TYPE_FIELD_BITPOS (type, field));
|
arg = gdb_py_long_from_longest (TYPE_FIELD_BITPOS (type, field));
|
||||||
attrstring = "bitpos";
|
attrstring = "bitpos";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -683,7 +683,7 @@ typy_get_sizeof (PyObject *self, void *closure)
|
|||||||
}
|
}
|
||||||
/* Ignore exceptions. */
|
/* Ignore exceptions. */
|
||||||
|
|
||||||
return PyLong_FromLong (TYPE_LENGTH (type));
|
return gdb_py_long_from_longest (TYPE_LENGTH (type));
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct type *
|
static struct type *
|
||||||
|
|||||||
Reference in New Issue
Block a user