File tree Expand file tree Collapse file tree
Modules/_remote_debugging Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -913,15 +913,20 @@ Get awaited_by relationships for tasks in the remote process.
913913Returns:
914914 A list of AwaitedInfo objects, where each object contains:
915915
916- - thread_id (int): Identifier of the thread.
917- - awaited_by (list[TaskInfo]): List of TaskInfo objects representing tasks
918- awaiting this thread.
916+ - thread_id (int): Identifier of the thread, or 0 for tasks in the
917+ interpreter's fallback task list.
918+ - awaited_by (list[TaskInfo]): Tasks registered with this thread.
919919
920920Each TaskInfo contains:
921921 - task_id (int): Identifier of the task.
922922 - task_name (str): Name of the task.
923923 - coroutine_stack (list[CoroInfo]): Stack of coroutine frames.
924- - awaited_by (list[TaskInfo]): Nested tasks awaited by this task.
924+ - awaited_by (list[CoroInfo]): Coroutine information for tasks or futures
925+ awaiting this task.
926+
927+ Each CoroInfo contains:
928+ - call_stack (list[FrameInfo]): Call stack frames for the coroutine.
929+ - task_name (int): Identifier of the task or future.
925930
926931Raises:
927932 RuntimeError: If AsyncioDebug section is not available in the
@@ -948,7 +953,7 @@ Example output:
948953
949954static PyObject *
950955_remote_debugging_RemoteUnwinder_get_all_awaited_by_impl (RemoteUnwinderObject * self )
951- /*[clinic end generated code: output=6a49cd345e8aec53 input=64456ccc05d9bfd2 ]*/
956+ /*[clinic end generated code: output=6a49cd345e8aec53 input=79e556b3973d21a8 ]*/
952957{
953958 if (ensure_async_debug_offsets (self ) < 0 ) {
954959 return NULL ;
You can’t perform that action at this time.
0 commit comments