@@ -73,6 +73,7 @@ typedef struct _Py_DebugOffsets {
73
73
uint64_t id ;
74
74
uint64_t next ;
75
75
uint64_t threads_head ;
76
+ uint64_t threads_main ;
76
77
uint64_t gc ;
77
78
uint64_t imports_modules ;
78
79
uint64_t sysdict ;
@@ -206,6 +207,15 @@ typedef struct _Py_DebugOffsets {
206
207
uint64_t gi_iframe ;
207
208
uint64_t gi_frame_state ;
208
209
} gen_object ;
210
+
211
+ struct _debugger_support {
212
+ uint64_t eval_breaker ;
213
+ uint64_t remote_debugger_support ;
214
+ uint64_t remote_debugging_enabled ;
215
+ uint64_t debugger_pending_call ;
216
+ uint64_t debugger_script_path ;
217
+ uint64_t debugger_script_path_size ;
218
+ } debugger_support ;
209
219
} _Py_DebugOffsets ;
210
220
211
221
@@ -223,6 +233,7 @@ typedef struct _Py_DebugOffsets {
223
233
.id = offsetof(PyInterpreterState, id), \
224
234
.next = offsetof(PyInterpreterState, next), \
225
235
.threads_head = offsetof(PyInterpreterState, threads.head), \
236
+ .threads_main = offsetof(PyInterpreterState, threads.main), \
226
237
.gc = offsetof(PyInterpreterState, gc), \
227
238
.imports_modules = offsetof(PyInterpreterState, imports.modules), \
228
239
.sysdict = offsetof(PyInterpreterState, sysdict), \
@@ -326,6 +337,14 @@ typedef struct _Py_DebugOffsets {
326
337
.gi_iframe = offsetof(PyGenObject, gi_iframe), \
327
338
.gi_frame_state = offsetof(PyGenObject, gi_frame_state), \
328
339
}, \
340
+ .debugger_support = { \
341
+ .eval_breaker = offsetof(PyThreadState, eval_breaker), \
342
+ .remote_debugger_support = offsetof(PyThreadState, remote_debugger_support), \
343
+ .remote_debugging_enabled = offsetof(PyInterpreterState, config.remote_debug), \
344
+ .debugger_pending_call = offsetof(_PyRemoteDebuggerSupport, debugger_pending_call), \
345
+ .debugger_script_path = offsetof(_PyRemoteDebuggerSupport, debugger_script_path), \
346
+ .debugger_script_path_size = MAX_SCRIPT_PATH_SIZE, \
347
+ }, \
329
348
}
330
349
331
350
0 commit comments