* inferiors.c (change_inferior_id): Add comment.
[deliverable/binutils-gdb.git] / gdb / gdbserver / inferiors.c
index 63587e573b5238396e8093b8923fefd4b1357e22..6262d7e812a3dacebda2a24946b760ec62459a7b 100644 (file)
@@ -64,6 +64,11 @@ for_each_inferior (struct inferior_list *list,
     }
 }
 
+/* When debugging a single-threaded program, the threads list (such as
+   it is) is indexed by PID.  When debugging a multi-threaded program,
+   we index by TID.  This ugly routine replaces the
+   first-debugged-thread's PID with its TID.  */
+
 void
 change_inferior_id (struct inferior_list *list,
                    unsigned long new_id)
This page took 0.023619 seconds and 4 git commands to generate.