diff options
Diffstat (limited to 'gdb/python/py-linetable.c')
-rw-r--r-- | gdb/python/py-linetable.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/python/py-linetable.c b/gdb/python/py-linetable.c index 49007ce..ff1716b 100644 --- a/gdb/python/py-linetable.c +++ b/gdb/python/py-linetable.c @@ -28,7 +28,7 @@ typedef struct { CORE_ADDR pc; } linetable_entry_object; -static PyTypeObject linetable_entry_object_type +extern PyTypeObject linetable_entry_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("linetable_entry_object"); typedef struct { @@ -39,7 +39,7 @@ typedef struct { PyObject *symtab; } linetable_object; -static PyTypeObject linetable_object_type +extern PyTypeObject linetable_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("linetable_object"); typedef struct { @@ -52,7 +52,7 @@ typedef struct { PyObject *source; } ltpy_iterator_object; -static PyTypeObject ltpy_iterator_object_type +extern PyTypeObject ltpy_iterator_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("ltpy_iterator_object"); /* Internal helper function to extract gdb.Symtab from a gdb.Linetable @@ -493,7 +493,7 @@ Return True if this Linetable is valid, False if not." }, {NULL} /* Sentinel */ }; -static PyTypeObject linetable_object_type = { +PyTypeObject linetable_object_type = { PyVarObject_HEAD_INIT (NULL, 0) "gdb.LineTable", /*tp_name*/ sizeof (linetable_object), /*tp_basicsize*/ @@ -540,7 +540,7 @@ Return True if this Linetable iterator is valid, False if not." }, {NULL} /* Sentinel */ }; -static PyTypeObject ltpy_iterator_object_type = { +PyTypeObject ltpy_iterator_object_type = { PyVarObject_HEAD_INIT (NULL, 0) "gdb.LineTableIterator", /*tp_name*/ sizeof (ltpy_iterator_object), /*tp_basicsize*/ @@ -580,7 +580,7 @@ static PyGetSetDef linetable_entry_object_getset[] = { { NULL } /* Sentinel */ }; -static PyTypeObject linetable_entry_object_type = { +PyTypeObject linetable_entry_object_type = { PyVarObject_HEAD_INIT (NULL, 0) "gdb.LineTableEntry", /*tp_name*/ sizeof (linetable_entry_object), /*tp_basicsize*/ |