* python/py-type.c (convert_field): Use gdb_py_long_from_longest
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Fri, 10 Aug 2012 18:55:18 +0000 (18:55 +0000)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Fri, 10 Aug 2012 18:55:18 +0000 (18:55 +0000)
for TYPE_FIELD_BITPOS.
(typy_get_sizeof): Likewise for TYPE_LENGTH.

gdb/ChangeLog
gdb/python/py-type.c

index 17f9b083a558e501c48646a4f612e1fd938501ef..8de8ba73e22833859ad919910fe07e94f8e5f5d1 100644 (file)
@@ -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>
 
        PR cli/10436:
index 98030a6fecc6e6ff5b4442ad81b3f1b965e0002c..a02402ef02ba4443e76e260d9ba855ca297b29bf 100644 (file)
@@ -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 *
This page took 0.030984 seconds and 4 git commands to generate.