@@ -73,6 +73,7 @@ typedef struct _Py_DebugOffsets {
7373 uint64_t id ;
7474 uint64_t next ;
7575 uint64_t threads_head ;
76+ uint64_t threads_main ;
7677 uint64_t gc ;
7778 uint64_t imports_modules ;
7879 uint64_t sysdict ;
@@ -206,6 +207,15 @@ typedef struct _Py_DebugOffsets {
206207 uint64_t gi_iframe ;
207208 uint64_t gi_frame_state ;
208209 } 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 ;
209219} _Py_DebugOffsets ;
210220
211221
@@ -223,6 +233,7 @@ typedef struct _Py_DebugOffsets {
223233 .id = offsetof(PyInterpreterState, id), \
224234 .next = offsetof(PyInterpreterState, next), \
225235 .threads_head = offsetof(PyInterpreterState, threads.head), \
236+ .threads_main = offsetof(PyInterpreterState, threads.main), \
226237 .gc = offsetof(PyInterpreterState, gc), \
227238 .imports_modules = offsetof(PyInterpreterState, imports.modules), \
228239 .sysdict = offsetof(PyInterpreterState, sysdict), \
@@ -326,6 +337,14 @@ typedef struct _Py_DebugOffsets {
326337 .gi_iframe = offsetof(PyGenObject, gi_iframe), \
327338 .gi_frame_state = offsetof(PyGenObject, gi_frame_state), \
328339 }, \
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+ }, \
329348}
330349
331350
0 commit comments