Skip to content

Commit 057ae0a

Browse files
Add GCMonitor
1 parent b7efa8e commit 057ae0a

3 files changed

Lines changed: 361 additions & 20 deletions

File tree

Modules/_remote_debugging/_remote_debugging.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ typedef struct {
262262
PyTypeObject *AwaitedInfo_Type;
263263
PyTypeObject *BinaryWriter_Type;
264264
PyTypeObject *BinaryReader_Type;
265+
PyTypeObject *GCMonitor_Type;
265266
} RemoteDebuggingState;
266267

267268
enum _ThreadState {
@@ -382,6 +383,16 @@ typedef struct {
382383
int32_t tlbc_index; // Thread-local bytecode index (free-threading)
383384
} CodeObjectContext;
384385

386+
typedef struct {
387+
PyObject_HEAD
388+
proc_handle_t handle;
389+
uintptr_t runtime_start_address;
390+
struct _Py_DebugOffsets debug_offsets;
391+
int debug;
392+
} GCMonitorObject;
393+
394+
#define GCMonitor_CAST(op) ((GCMonitorObject *)(op))
395+
385396
/* Function pointer types for iteration callbacks */
386397
typedef int (*thread_processor_func)(
387398
RemoteUnwinderObject *unwinder,

Modules/_remote_debugging/clinic/module.c.h

Lines changed: 177 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)