@@ -34,6 +34,7 @@ extern PyTypeObject _PyExc_MemoryError;
3434 .debug_offsets = { \
3535 .cookie = "xdebugpy", \
3636 .version = PY_VERSION_HEX, \
37+ .free_threaded = Py_GIL_DISABLED, \
3738 .runtime_state = { \
3839 .size = sizeof(_PyRuntimeState), \
3940 .finalizing = offsetof(_PyRuntimeState, _finalizing), \
@@ -48,6 +49,7 @@ extern PyTypeObject _PyExc_MemoryError;
4849 .imports_modules = offsetof(PyInterpreterState, imports.modules), \
4950 .sysdict = offsetof(PyInterpreterState, sysdict), \
5051 .builtins = offsetof(PyInterpreterState, builtins), \
52+ ._gil = offsetof(PyInterpreterState, _gil), \
5153 .ceval_gil = offsetof(PyInterpreterState, ceval.gil), \
5254 .gil_runtime_state_locked = offsetof(PyInterpreterState, _gil.locked), \
5355 .gil_runtime_state_holder = offsetof(PyInterpreterState, _gil.last_holder), \
@@ -90,10 +92,36 @@ extern PyTypeObject _PyExc_MemoryError;
9092 .type_object = { \
9193 .size = sizeof(PyTypeObject), \
9294 .tp_name = offsetof(PyTypeObject, tp_name), \
95+ .tp_repr = offsetof(PyTypeObject, tp_repr), \
96+ .tp_flags = offsetof(PyTypeObject, tp_flags), \
9397 }, \
9498 .tuple_object = { \
9599 .size = sizeof(PyTupleObject), \
96100 .ob_item = offsetof(PyTupleObject, ob_item), \
101+ .ob_size = offsetof(PyTupleObject, ob_base.ob_size), \
102+ }, \
103+ .list_object = { \
104+ .size = sizeof(PyListObject), \
105+ .ob_item = offsetof(PyListObject, ob_item), \
106+ }, \
107+ .dict_object = { \
108+ .size = sizeof(PyDictObject), \
109+ .ma_keys = offsetof(PyDictObject, ma_keys), \
110+ .ma_values = offsetof(PyDictObject, ma_values), \
111+ }, \
112+ .float_object = { \
113+ .size = sizeof(PyFloatObject), \
114+ .ob_fval = offsetof(PyFloatObject, ob_fval), \
115+ }, \
116+ .long_object = { \
117+ .size = sizeof(PyLongObject), \
118+ .lv_tag = offsetof(_PyLongValue, lv_tag), \
119+ .ob_digit = offsetof(_PyLongValue, ob_digit), \
120+ }, \
121+ .bytes_object = { \
122+ .size = sizeof(PyBytesObject), \
123+ .ob_size = offsetof(PyBytesObject, ob_base.ob_size), \
124+ .ob_sval = offsetof(PyBytesObject, ob_sval), \
97125 }, \
98126 .unicode_object = { \
99127 .size = sizeof(PyUnicodeObject), \
0 commit comments