]> git.saurik.com Git - apple/xnu.git/blobdiff - tools/lldbmacros/ipc.py
xnu-7195.101.1.tar.gz
[apple/xnu.git] / tools / lldbmacros / ipc.py
index 4ae6086e61a84e68696c6274be9823e4aba07c83..7f7c65163419be8510b2efc4f3f65a787bca4361 100755 (executable)
@@ -1242,14 +1242,14 @@ def IterateAllPorts(tasklist, func, ctx, include_psets, follow_busyports, should
             func(t, space, ctx, taskports_idx, 0, t.itk_debug_control, 17)
         if unsigned(t.itk_task_access) > 0:
             func(t, space, ctx, taskports_idx, 0, t.itk_task_access, 17)
-        if unsigned(t.itk_self[1]) > 0: ## task read port
-            func(t, space, ctx, taskports_idx, 0, t.itk_self[1], 17)
-        if unsigned(t.itk_self[2]) > 0: ## task inspect port
-            func(t, space, ctx, taskports_idx, 0, t.itk_self[2], 17)
+        if unsigned(t.itk_task_ports[1]) > 0: ## task read port
+            func(t, space, ctx, taskports_idx, 0, t.itk_task_ports[1], 17)
+        if unsigned(t.itk_task_ports[2]) > 0: ## task inspect port
+            func(t, space, ctx, taskports_idx, 0, t.itk_task_ports[2], 17)
 
         ## Task name port (not a send right, just a naked ref); TASK_FLAVOR_NAME = 3
-        if unsigned(t.itk_self[3]) > 0:
-            func(t, space, ctx, taskports_idx, 0, t.itk_self[3], 0)
+        if unsigned(t.itk_task_ports[3]) > 0:
+            func(t, space, ctx, taskports_idx, 0, t.itk_task_ports[3], 0)
 
         ## task resume port is a receive right to resume the task
         if unsigned(t.itk_resume) > 0: