@@ -35,10 +35,12 @@ extern PyTypeObject _PyExc_MemoryError;
35
35
.cookie = "xdebugpy", \
36
36
.version = PY_VERSION_HEX, \
37
37
.runtime_state = { \
38
+ .size = sizeof(_PyRuntimeState), \
38
39
.finalizing = offsetof(_PyRuntimeState, _finalizing), \
39
40
.interpreters_head = offsetof(_PyRuntimeState, interpreters.head), \
40
41
}, \
41
42
.interpreter_state = { \
43
+ .size = sizeof(PyInterpreterState), \
42
44
.next = offsetof(PyInterpreterState, next), \
43
45
.threads_head = offsetof(PyInterpreterState, threads.head), \
44
46
.gc = offsetof(PyInterpreterState, gc), \
@@ -50,6 +52,7 @@ extern PyTypeObject _PyExc_MemoryError;
50
52
.gil_runtime_state_holder = offsetof(PyInterpreterState, _gil.last_holder), \
51
53
}, \
52
54
.thread_state = { \
55
+ .size = sizeof(PyThreadState), \
53
56
.prev = offsetof(PyThreadState, prev), \
54
57
.next = offsetof(PyThreadState, next), \
55
58
.interp = offsetof(PyThreadState, interp), \
@@ -58,13 +61,15 @@ extern PyTypeObject _PyExc_MemoryError;
58
61
.native_thread_id = offsetof(PyThreadState, native_thread_id), \
59
62
}, \
60
63
.interpreter_frame = { \
64
+ .size = sizeof(_PyInterpreterFrame), \
61
65
.previous = offsetof(_PyInterpreterFrame, previous), \
62
66
.executable = offsetof(_PyInterpreterFrame, f_executable), \
63
67
.instr_ptr = offsetof(_PyInterpreterFrame, instr_ptr), \
64
68
.localsplus = offsetof(_PyInterpreterFrame, localsplus), \
65
69
.owner = offsetof(_PyInterpreterFrame, owner), \
66
70
}, \
67
71
.code_object = { \
72
+ .size = sizeof(PyCodeObject), \
68
73
.filename = offsetof(PyCodeObject, co_filename), \
69
74
.name = offsetof(PyCodeObject, co_name), \
70
75
.linetable = offsetof(PyCodeObject, co_linetable), \
@@ -75,15 +80,19 @@ extern PyTypeObject _PyExc_MemoryError;
75
80
.co_code_adaptive = offsetof(PyCodeObject, co_code_adaptive), \
76
81
}, \
77
82
.pyobject = { \
83
+ .size = sizeof(PyObject), \
78
84
.ob_type = offsetof(PyObject, ob_type), \
79
85
}, \
80
86
.type_object = { \
87
+ .size = sizeof(PyTypeObject), \
81
88
.tp_name = offsetof(PyTypeObject, tp_name), \
82
89
}, \
83
90
.tuple_object = { \
91
+ .size = sizeof(PyTupleObject), \
84
92
.ob_item = offsetof(PyTupleObject, ob_item), \
85
93
}, \
86
94
.unicode_object = { \
95
+ .size = sizeof(PyUnicodeObject), \
87
96
.state = offsetof(PyUnicodeObject, _base._base.state), \
88
97
.length = offsetof(PyUnicodeObject, _base._base.length), \
89
98
.asciiobject_size = sizeof(PyASCIIObject), \
0 commit comments